#020B2E#020B2E

#020B2E is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.9% C 0.072 H 264.4°. Best body text is #FFFFFF at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#020B2E
RGBrgb(2, 11, 46)
HSLhsl(228, 92%, 9%)
HSVhsv(228, 96%, 18%)
CMYKcmyk(95.7%, 76.1%, 0%, 82%)
CIE-LABlab(4.06, 8.63, -23.28)
CIE-LCHlch(4.06, 24.83, 290.33°)
OKLaboklab(16.95% -0.0071 -0.072)
OKLCHoklch(16.95% 0.072 264.4)
XYZxyz(0.6377, 0.4494, 2.6374)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020B2E #2E2502
analogous
#02212E #020B2E #0F022E
triadic
#020B2E #2E020B #0B2E02
tetradic
#020B2E #2E0221 #2E2502 #022E0F
square
#020B2E #2E0221 #2E2502 #022E0F
split-complementary
#020B2E #2E0F02 #212E02
monochromatic
#01071D #01071D #020B2E #051969 #0727A3

Accessibility & contrast

On white

19.27
#020B2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020B2E
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020B2E#FFFFFF#000000##FFFFFF
##020B2E1.0019.271.0919.27
#FFFFFF19.271.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#000C2D
Tritanopia (blue-blind)
#00141A
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #020b2e;
/* rgb */ color: rgb(2, 11, 46);
/* oklch */ color: oklch(16.9% 0.072 264.4);
Tailwind
colors: {
  custom: {
    50: '#494b67',
    500: '#020b2e',
    950: '#000000',
  },
}
SCSS
$custom: #020b2e;
$custom-light: #494b67;
$custom-dark: #000000;
JSON
{
  "hex": "#020b2e",
  "rgb": {
    "r": 2,
    "g": 11,
    "b": 46
  },
  "hsl": {
    "h": 227.727,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16945,
    "c": 0.07236,
    "h": 264.4
  },
  "luminance": 0.0045
}

Semantic roles & 50–950 ramp

primary
#020B2E
secondary
#736019
accent
#D329FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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