#02062F#02062F

#02062F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.082 H 266.9°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#02062F
RGBrgb(2, 6, 47)
HSLhsl(235, 92%, 10%)
HSVhsv(235, 96%, 18%)
CMYKcmyk(95.7%, 87.2%, 0%, 81.6%)
CIE-LABlab(3.15, 11.14, -25.48)
CIE-LCHlch(3.15, 27.82, 293.62°)
OKLaboklab(15.84% -0.0044 -0.0817)
OKLCHoklch(15.84% 0.082 266.9)
XYZxyz(0.6031, 0.3483, 2.7242)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02062F #2F2B02
analogous
#021D2F #02062F #15022F
triadic
#02062F #2F0206 #062F02
tetradic
#02062F #2F021D #2F2B02 #022F15
square
#02062F #2F021D #2F2B02 #022F15
split-complementary
#02062F #2F1502 #1D2F02
monochromatic
#01041D #01041D #02062F #040D6A #0715A4

Accessibility & contrast

On white

19.63
#02062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#02062F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02062F
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02062F#FFFFFF#000000##FFFFFF
##02062F1.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#00092E
Tritanopia (blue-blind)
#001219
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #02062f;
/* rgb */ color: rgb(2, 6, 47);
/* oklch */ color: oklch(15.8% 0.082 266.9);
Tailwind
colors: {
  custom: {
    50: '#494968',
    500: '#02062f',
    950: '#000000',
  },
}
SCSS
$custom: #02062f;
$custom-light: #494968;
$custom-dark: #000000;
JSON
{
  "hex": "#02062f",
  "rgb": {
    "r": 2,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 234.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15844,
    "c": 0.08182,
    "h": 266.9
  },
  "luminance": 0.00348
}

Semantic roles & 50–950 ramp

primary
#02062F
secondary
#746C19
accent
#EC29FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #02062F

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

Preview Lab → · Contrast checker → · Palette generator →

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