#02012A#02012A

#02012A is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.6% C 0.085 H 269.2°. Best body text is #FFFFFF at 20.18:1 contrast (WCAG AA passes).

Color values

HEX#02012A
RGBrgb(2, 1, 42)
HSLhsl(241, 95%, 8%)
HSVhsv(241, 98%, 16%)
CMYKcmyk(95.2%, 97.6%, 0%, 83.5%)
CIE-LABlab(1.82, 10.73, -23.79)
CIE-LCHlch(1.82, 26.10, 294.28°)
OKLaboklab(13.58% -0.0012 -0.0846)
OKLCHoklch(13.58% 0.085 269.2)
XYZxyz(0.4537, 0.2017, 2.2051)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02012A #292A01
analogous
#01142A #02012A #16012A
triadic
#02012A #2A0201 #012A02
tetradic
#02012A #2A0114 #292A01 #012A16
square
#02012A #2A0114 #292A01 #012A16
split-complementary
#02012A #2A1601 #142A01
monochromatic
#01011E #01011E #02012A #050266 #0804A2

Accessibility & contrast

On white

20.18
#02012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02012A
20.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02012A#FFFFFF#000000##FFFFFF
##02012A1.0020.181.0420.18
#FFFFFF20.181.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092B
Deuteranopia (green-blind)
#000529
Tritanopia (blue-blind)
#000C15
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #02012a;
/* rgb */ color: rgb(2, 1, 42);
/* oklch */ color: oklch(13.6% 0.085 269.2);
Tailwind
colors: {
  custom: {
    50: '#484764',
    500: '#02012a',
    950: '#000000',
  },
}
SCSS
$custom: #02012a;
$custom-light: #484764;
$custom-dark: #000000;
JSON
{
  "hex": "#02012a",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 241.463,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.13579,
    "c": 0.08457,
    "h": 269.2
  },
  "luminance": 0.00202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #02012A

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

Preview Lab → · Contrast checker → · Palette generator →

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