#020B2A#020B2A

#020B2A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.5% C 0.066 H 263.7°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#020B2A
RGBrgb(2, 11, 42)
HSLhsl(227, 91%, 9%)
HSVhsv(227, 95%, 16%)
CMYKcmyk(95.2%, 73.8%, 0%, 83.5%)
CIE-LABlab(3.79, 6.72, -20.70)
CIE-LCHlch(3.79, 21.76, 287.98°)
OKLaboklab(16.49% -0.0072 -0.0653)
OKLCHoklch(16.49% 0.066 263.7)
XYZxyz(0.5625, 0.4193, 2.2413)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020B2A #2A2102
analogous
#021F2A #020B2A #0D022A
triadic
#020B2A #2A020B #0B2A02
tetradic
#020B2A #2A021F #2A2102 #022A0D
square
#020B2A #2A021F #2A2102 #022A0D
split-complementary
#020B2A #2A0D02 #1F2A02
monochromatic
#01081D #01081D #020B2A #051A64 #082A9F

Accessibility & contrast

On white

19.38
#020B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#020B2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020B2A
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020B2A#FFFFFF#000000##FFFFFF
##020B2A1.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#000C29
Tritanopia (blue-blind)
#001318
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #020b2a;
/* rgb */ color: rgb(2, 11, 42);
/* oklch */ color: oklch(16.5% 0.066 263.7);
Tailwind
colors: {
  custom: {
    50: '#484b63',
    500: '#020b2a',
    950: '#000000',
  },
}
SCSS
$custom: #020b2a;
$custom-light: #484b63;
$custom-dark: #000000;
JSON
{
  "hex": "#020b2a",
  "rgb": {
    "r": 2,
    "g": 11,
    "b": 42
  },
  "hsl": {
    "h": 226.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.16485,
    "c": 0.06565,
    "h": 263.7
  },
  "luminance": 0.00419
}

Semantic roles & 50–950 ramp

primary
#020B2A
secondary
#6F5C19
accent
#CF29FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #020B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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