#020A2F#020A2F

#020A2F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.8% C 0.075 H 265.1°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#020A2F
RGBrgb(2, 10, 47)
HSLhsl(229, 92%, 10%)
HSVhsv(229, 96%, 18%)
CMYKcmyk(95.7%, 78.7%, 0%, 81.6%)
CIE-LABlab(3.93, 9.54, -24.24)
CIE-LCHlch(3.93, 26.05, 291.49°)
OKLaboklab(16.83% -0.0065 -0.0752)
OKLCHoklch(16.83% 0.075 265.1)
XYZxyz(0.6465, 0.4351, 2.7387)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020A2F #2F2702
analogous
#02212F #020A2F #10022F
triadic
#020A2F #2F020A #0A2F02
tetradic
#020A2F #2F0221 #2F2702 #022F10
square
#020A2F #2F0221 #2F2702 #022F10
split-complementary
#020A2F #2F1002 #212F02
monochromatic
#01061D #01061D #020A2F #04166A #0723A4

Accessibility & contrast

On white

19.32
#020A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#020A2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020A2F
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020A2F#FFFFFF#000000##FFFFFF
##020A2F1.0019.321.0919.32
#FFFFFF19.321.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#000C2E
Tritanopia (blue-blind)
#00141B
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #020a2f;
/* rgb */ color: rgb(2, 10, 47);
/* oklch */ color: oklch(16.8% 0.075 265.1);
Tailwind
colors: {
  custom: {
    50: '#494b68',
    500: '#020a2f',
    950: '#000000',
  },
}
SCSS
$custom: #020a2f;
$custom-light: #494b68;
$custom-dark: #000000;
JSON
{
  "hex": "#020a2f",
  "rgb": {
    "r": 2,
    "g": 10,
    "b": 47
  },
  "hsl": {
    "h": 229.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16829,
    "c": 0.07547,
    "h": 265.1
  },
  "luminance": 0.00435
}

Semantic roles & 50–950 ramp

primary
#020A2F
secondary
#746419
accent
#D929FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020A2F

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

Preview Lab → · Contrast checker → · Palette generator →

#020A2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva