#02062C#02062C

#02062C is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.4% C 0.077 H 267.0°. Best body text is #FFFFFF at 19.72:1 contrast (WCAG AA passes).

Color values

HEX#02062C
RGBrgb(2, 6, 44)
HSLhsl(234, 91%, 9%)
HSVhsv(234, 95%, 17%)
CMYKcmyk(95.5%, 86.4%, 0%, 82.7%)
CIE-LABlab(2.93, 9.66, -23.56)
CIE-LCHlch(2.93, 25.46, 292.29°)
OKLaboklab(15.44% -0.004 -0.0771)
OKLCHoklch(15.44% 0.077 267)
XYZxyz(0.5446, 0.3249, 2.4164)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02062C #2C2802
analogous
#021B2C #02062C #13022C
triadic
#02062C #2C0206 #062C02
tetradic
#02062C #2C021B #2C2802 #022C13
square
#02062C #2C021B #2C2802 #022C13
split-complementary
#02062C #2C1302 #1B2C02
monochromatic
#01041D #01041D #02062C #050E67 #0716A1

Accessibility & contrast

On white

19.72
#02062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02062C
19.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02062C#FFFFFF#000000##FFFFFF
##02062C1.0019.721.0719.72
#FFFFFF19.721.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#00092B
Tritanopia (blue-blind)
#001018
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #02062c;
/* rgb */ color: rgb(2, 6, 44);
/* oklch */ color: oklch(15.4% 0.077 267.0);
Tailwind
colors: {
  custom: {
    50: '#484965',
    500: '#02062c',
    950: '#000000',
  },
}
SCSS
$custom: #02062c;
$custom-light: #484965;
$custom-dark: #000000;
JSON
{
  "hex": "#02062c",
  "rgb": {
    "r": 2,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 234.286,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15436,
    "c": 0.07717,
    "h": 267
  },
  "luminance": 0.00325
}

Semantic roles & 50–950 ramp

primary
#02062C
secondary
#716919
accent
#EB29FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #02062C

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

Preview Lab → · Contrast checker → · Palette generator →

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