#02042A#02042A

#02042A is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.6% C 0.078 H 268.1°. Best body text is #FFFFFF at 19.94:1 contrast (WCAG AA passes).

Color values

HEX#02042A
RGBrgb(2, 4, 42)
HSLhsl(237, 91%, 9%)
HSVhsv(237, 95%, 16%)
CMYKcmyk(95.2%, 90.5%, 0%, 83.5%)
CIE-LABlab(2.41, 9.53, -22.86)
CIE-LCHlch(2.41, 24.77, 292.63°)
OKLaboklab(14.57% -0.0026 -0.0779)
OKLCHoklch(14.57% 0.078 268.1)
XYZxyz(0.4862, 0.2668, 2.2159)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02042A #2A2802
analogous
#02182A #02042A #14022A
triadic
#02042A #2A0204 #042A02
tetradic
#02042A #2A0218 #2A2802 #022A14
square
#02042A #2A0218 #2A2802 #022A14
split-complementary
#02042A #2A1402 #182A02
monochromatic
#01031D #01031D #02042A #050A64 #080F9F

Accessibility & contrast

On white

19.94
#02042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#02042A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02042A
19.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02042A#FFFFFF#000000##FFFFFF
##02042A1.0019.941.0519.94
#FFFFFF19.941.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2B
Deuteranopia (green-blind)
#000729
Tritanopia (blue-blind)
#000E16
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #02042a;
/* rgb */ color: rgb(2, 4, 42);
/* oklch */ color: oklch(14.6% 0.078 268.1);
Tailwind
colors: {
  custom: {
    50: '#484864',
    500: '#02042a',
    950: '#000000',
  },
}
SCSS
$custom: #02042a;
$custom-light: #484864;
$custom-dark: #000000;
JSON
{
  "hex": "#02042a",
  "rgb": {
    "r": 2,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 237,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.14574,
    "c": 0.0779,
    "h": 268.1
  },
  "luminance": 0.00267
}

Semantic roles & 50–950 ramp

primary
#02042A
secondary
#6F6B19
accent
#F429FF
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #02042A

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

Preview Lab → · Contrast checker → · Palette generator →

#02042A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva