#02012B#02012B

#02012B is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.7% C 0.086 H 269.0°. Best body text is #FFFFFF at 20.16:1 contrast (WCAG AA passes).

Color values

HEX#02012B
RGBrgb(2, 1, 43)
HSLhsl(241, 95%, 9%)
HSVhsv(241, 98%, 17%)
CMYKcmyk(95.3%, 97.7%, 0%, 83.1%)
CIE-LABlab(1.89, 11.19, -24.45)
CIE-LCHlch(1.89, 26.89, 294.59°)
OKLaboklab(13.74% -0.0015 -0.0859)
OKLCHoklch(13.74% 0.086 269)
XYZxyz(0.4718, 0.2090, 2.3005)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02012B #2A2B01
analogous
#01152B #02012B #17012B
triadic
#02012B #2B0201 #012B02
tetradic
#02012B #2B0115 #2A2B01 #012B17
square
#02012B #2B0115 #2A2B01 #012B17
split-complementary
#02012B #2B1701 #152B01
monochromatic
#01011E #01011E #02012B #050267 #0804A3

Accessibility & contrast

On white

20.16
#02012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#02012B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02012B
20.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02012B#FFFFFF#000000##FFFFFF
##02012B1.0020.161.0420.16
#FFFFFF20.161.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092C
Deuteranopia (green-blind)
#00052A
Tritanopia (blue-blind)
#000C15
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #02012b;
/* rgb */ color: rgb(2, 1, 43);
/* oklch */ color: oklch(13.7% 0.086 269.0);
Tailwind
colors: {
  custom: {
    50: '#484764',
    500: '#02012b',
    950: '#000000',
  },
}
SCSS
$custom: #02012b;
$custom-light: #484764;
$custom-dark: #000000;
JSON
{
  "hex": "#02012b",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 241.429,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.13744,
    "c": 0.08595,
    "h": 269
  },
  "luminance": 0.00209
}

Semantic roles & 50–950 ramp

primary
#02012B
secondary
#6F7117
accent
#FF29FA
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #02012B

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

Preview Lab → · Contrast checker → · Palette generator →

#02012B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva