Nearest named color · #002638
#002638
Nearest named color: Midnight Dreams
#002638 (rgb(0 38 56), hsl(199 100% 11%), oklch(0.253 0.053 234.4)) is closest to the named color Midnight Dreams. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#002638
oklch(0.253 0.053 234.4)
Color conversions
- HEX
- #002638
- RGB
- rgb(0 38 56)
- HSL
- hsl(199 100% 11%)
- HWB
- hwb(199 0% 78%)
- OKLCH
- oklch(0.253 0.053 234.4)
- OKLab
- oklab(0.253 -0.031 -0.043)
- CIE Lab
- lab(13.41 -7.38 -15.64)
- LCH
- lch(13.41 17.3 244.7)
- CMYK
- cmyk(100% 32% 0% 78%)
Tints · Shades · Tones
Tints
- 19394A
- 314C5C
- 48616F
- 607682
- 798B96
- 93A1AA
- ADB8BF
- C8CFD4
- E3E7E9
Shades
- 00202F
- 001927
- 00131F
- 000D17
- 00080F
- 000408
- 000204
- 000101
- 000000
Tones
- 0E2E3F
- 1C3746
- 28404D
- 354954
- 41525B
- 4D5B63
- 5A646A
- 666D71
- 737679
Color harmonies
Complementary +180°
- 002638
Midnight Dreams
- 361A06
≈ American Bronze
Analogous -30° +30°
- 002638
Midnight Dreams
- 00282C
≈ Daintree
- 15213C
≈ Cool Balaclavas Are Forever
Triadic +120° +240°
- 002638
Midnight Dreams
- 361624
≈ Chocolate Kiss
- 222503
≈ Liquorice Root
Split-complementary +150° +210°
- 002638
Midnight Dreams
- 381715
≈ Rustic Red
- 2E2000
≈ Black Swan
Tetradic +90° +180° +270°
- 002638
Midnight Dreams
- 2F1931
≈ Blackcurrant
- 361A06
≈ American Bronze
- 102911
≈ Nori Green
Contrast & accessibility
Ag
AAAOn white
WCAG 15.73:1 · APCA Lc 102
Ag
FailOn black
WCAG 1.33:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 15.73:1 (AAA) · APCA Lc 102
Contrast pairs
Code snippets
CSS
:root {
--midnight-dreams: #002638;
--midnight-dreams-rgb: 0 38 56;
--midnight-dreams-oklch: oklch(0.253 0.053 234.4);
}
.element {
color: var(--midnight-dreams);
background-color: hsl(199 100% 11%);
border-color: oklch(0.253 0.053 234.4);
}Tailwind CSS v4
@theme {
--color-midnight-dreams: #002638;
--color-midnight-dreams-50: #e7f8ff;
--color-midnight-dreams-100: #d8ebf8;
--color-midnight-dreams-200: #c0d8e8;
--color-midnight-dreams-300: #9ebcd0;
--color-midnight-dreams-400: #80a4ba;
--color-midnight-dreams-500: #638ca5;
--color-midnight-dreams-600: #54778b;
--color-midnight-dreams-700: #435f6f;
--color-midnight-dreams-800: #2f4652;
--color-midnight-dreams-900: #203039;
--color-midnight-dreams-950: #101d23;
}SCSS
$midnight-dreams: #002638;
$midnight-dreams-rgb: 0, 38, 56;
$midnight-dreams-light: mix(#fff, $midnight-dreams, 20%);
$midnight-dreams-dark: mix(#000, $midnight-dreams, 20%);
.element {
color: $midnight-dreams;
box-shadow: 0 0 0 2px rgba($midnight-dreams, 0.35);
}