#02142E#02142E

#02142E is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.3% C 0.058 H 255.9°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#02142E
RGBrgb(2, 20, 46)
HSLhsl(215, 92%, 9%)
HSVhsv(215, 96%, 18%)
CMYKcmyk(95.7%, 56.5%, 0%, 82%)
CIE-LABlab(6.42, 3.81, -19.53)
CIE-LCHlch(6.42, 19.90, 281.02°)
OKLaboklab(19.34% -0.0142 -0.0567)
OKLCHoklch(19.34% 0.058 255.9)
XYZxyz(0.7681, 0.7104, 2.6809)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02142E #2E1C02
analogous
#022A2E #02142E #06022E
triadic
#02142E #2E0214 #142E02
tetradic
#02142E #2E022A #2E1C02 #022E06
square
#02142E #2E022A #2E1C02 #022E06
split-complementary
#02142E #2E0602 #2A2E02
monochromatic
#010D1D #010D1D #02142E #052D69 #0747A3

Accessibility & contrast

On white

18.39
#02142E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02142E
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02142E#FFFFFF#000000##FFFFFF
##02142E1.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06162F
Deuteranopia (green-blind)
#00122D
Tritanopia (blue-blind)
#001A1E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #02142e;
/* rgb */ color: rgb(2, 20, 46);
/* oklch */ color: oklch(19.3% 0.058 255.9);
Tailwind
colors: {
  custom: {
    50: '#495167',
    500: '#02142e',
    950: '#000000',
  },
}
SCSS
$custom: #02142e;
$custom-light: #495167;
$custom-dark: #000000;
JSON
{
  "hex": "#02142e",
  "rgb": {
    "r": 2,
    "g": 20,
    "b": 46
  },
  "hsl": {
    "h": 215.455,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.1934,
    "c": 0.05849,
    "h": 255.9
  },
  "luminance": 0.0071
}

Semantic roles & 50–950 ramp

primary
#02142E
secondary
#734E19
accent
#A729FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #02142E

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

Preview Lab → · Contrast checker → · Palette generator →

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