#02062A#02062A

#02062A is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.2% C 0.074 H 267.1°. Best body text is #FFFFFF at 19.77:1 contrast (WCAG AA passes).

Color values

HEX#02062A
RGBrgb(2, 6, 42)
HSLhsl(234, 91%, 9%)
HSVhsv(234, 95%, 16%)
CMYKcmyk(95.2%, 85.7%, 0%, 83.5%)
CIE-LABlab(2.80, 8.72, -22.25)
CIE-LCHlch(2.80, 23.89, 291.41°)
OKLaboklab(15.17% -0.0038 -0.0739)
OKLCHoklch(15.17% 0.074 267.1)
XYZxyz(0.5079, 0.3103, 2.2232)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02062A #2A2602
analogous
#021A2A #02062A #12022A
triadic
#02062A #2A0206 #062A02
tetradic
#02062A #2A021A #2A2602 #022A12
square
#02062A #2A021A #2A2602 #022A12
split-complementary
#02062A #2A1202 #1A2A02
monochromatic
#01041D #01041D #02062A #050E64 #08179F

Accessibility & contrast

On white

19.77
#02062A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#02062A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02062A
19.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02062A#FFFFFF#000000##FFFFFF
##02062A1.0019.771.0619.77
#FFFFFF19.771.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2B
Deuteranopia (green-blind)
#000829
Tritanopia (blue-blind)
#001017
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #02062a;
/* rgb */ color: rgb(2, 6, 42);
/* oklch */ color: oklch(15.2% 0.074 267.1);
Tailwind
colors: {
  custom: {
    50: '#484964',
    500: '#02062a',
    950: '#000000',
  },
}
SCSS
$custom: #02062a;
$custom-light: #484964;
$custom-dark: #000000;
JSON
{
  "hex": "#02062a",
  "rgb": {
    "r": 2,
    "g": 6,
    "b": 42
  },
  "hsl": {
    "h": 234,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15168,
    "c": 0.074,
    "h": 267.1
  },
  "luminance": 0.0031
}

Semantic roles & 50–950 ramp

primary
#02062A
secondary
#6F6619
accent
#EA29FF
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #02062A

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

Preview Lab → · Contrast checker → · Palette generator →

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