#02142F#02142F

#02142F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.4% C 0.060 H 256.5°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#02142F
RGBrgb(2, 20, 47)
HSLhsl(216, 92%, 10%)
HSVhsv(216, 96%, 18%)
CMYKcmyk(95.7%, 57.4%, 0%, 81.6%)
CIE-LABlab(6.49, 4.31, -20.16)
CIE-LCHlch(6.49, 20.62, 282.08°)
OKLaboklab(19.43% -0.014 -0.0585)
OKLCHoklch(19.43% 0.06 256.5)
XYZxyz(0.7881, 0.7184, 2.7859)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02142F #2F1D02
analogous
#022B2F #02142F #07022F
triadic
#02142F #2F0214 #142F02
tetradic
#02142F #2F022B #2F1D02 #022F07
square
#02142F #2F022B #2F1D02 #022F07
split-complementary
#02142F #2F0702 #2B2F02
monochromatic
#010C1D #010C1D #02142F #042D6A #0746A4

Accessibility & contrast

On white

18.36
#02142F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#02142F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02142F
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02142F#FFFFFF#000000##FFFFFF
##02142F1.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051730
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#001B1F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #02142f;
/* rgb */ color: rgb(2, 20, 47);
/* oklch */ color: oklch(19.4% 0.060 256.5);
Tailwind
colors: {
  custom: {
    50: '#4a5168',
    500: '#02142f',
    950: '#000000',
  },
}
SCSS
$custom: #02142f;
$custom-light: #4a5168;
$custom-dark: #000000;
JSON
{
  "hex": "#02142f",
  "rgb": {
    "r": 2,
    "g": 20,
    "b": 47
  },
  "hsl": {
    "h": 216,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19431,
    "c": 0.06016,
    "h": 256.5
  },
  "luminance": 0.00718
}

Semantic roles & 50–950 ramp

primary
#02142F
secondary
#744F19
accent
#A929FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #02142F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#02142F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva