#020F2A#020F2A

#020F2A is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.6% C 0.059 H 259.9°. Best body text is #FFFFFF at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#020F2A
RGBrgb(2, 15, 42)
HSLhsl(221, 91%, 9%)
HSVhsv(221, 95%, 16%)
CMYKcmyk(95.2%, 64.3%, 0%, 83.5%)
CIE-LABlab(4.71, 4.83, -19.24)
CIE-LCHlch(4.71, 19.84, 284.08°)
OKLaboklab(17.55% -0.0104 -0.0584)
OKLCHoklch(17.55% 0.059 259.9)
XYZxyz(0.6136, 0.5216, 2.2584)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020F2A #2A1D02
analogous
#02232A #020F2A #09022A
triadic
#020F2A #2A020F #0F2A02
tetradic
#020F2A #2A0223 #2A1D02 #022A09
square
#020F2A #2A0223 #2A1D02 #022A09
split-complementary
#020F2A #2A0902 #232A02
monochromatic
#010A1D #010A1D #020F2A #052464 #08399F

Accessibility & contrast

On white

19.01
#020F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#020F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020F2A
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020F2A#FFFFFF#000000##FFFFFF
##020F2A1.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01122B
Deuteranopia (green-blind)
#000E29
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #020f2a;
/* rgb */ color: rgb(2, 15, 42);
/* oklch */ color: oklch(17.6% 0.059 259.9);
Tailwind
colors: {
  custom: {
    50: '#484e63',
    500: '#020f2a',
    950: '#000000',
  },
}
SCSS
$custom: #020f2a;
$custom-light: #484e63;
$custom-dark: #000000;
JSON
{
  "hex": "#020f2a",
  "rgb": {
    "r": 2,
    "g": 15,
    "b": 42
  },
  "hsl": {
    "h": 220.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.17553,
    "c": 0.05934,
    "h": 259.9
  },
  "luminance": 0.00522
}

Semantic roles & 50–950 ramp

primary
#020F2A
secondary
#6F5319
accent
#B929FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #020F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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