#02012D#02012D

#02012D is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.1% C 0.089 H 268.7°. Best body text is #FFFFFF at 20.10:1 contrast (WCAG AA passes).

Color values

HEX#02012D
RGBrgb(2, 1, 45)
HSLhsl(241, 96%, 9%)
HSVhsv(241, 98%, 18%)
CMYKcmyk(95.6%, 97.8%, 0%, 82.4%)
CIE-LABlab(2.02, 12.15, -25.76)
CIE-LCHlch(2.02, 28.48, 295.24°)
OKLaboklab(14.08% -0.0021 -0.0887)
OKLCHoklch(14.08% 0.089 268.7)
XYZxyz(0.5094, 0.2240, 2.4985)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02012D #2C2D01
analogous
#01162D #02012D #18012D
triadic
#02012D #2D0201 #012D02
tetradic
#02012D #2D0116 #2C2D01 #012D18
square
#02012D #2D0116 #2C2D01 #012D18
split-complementary
#02012D #2D1801 #162D01
monochromatic
#01011E #01011E #02012D #050269 #0704A5

Accessibility & contrast

On white

20.10
#02012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02012D
20.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02012D#FFFFFF#000000##FFFFFF
##02012D1.0020.101.0420.10
#FFFFFF20.101.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2E
Deuteranopia (green-blind)
#00052C
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #02012d;
/* rgb */ color: rgb(2, 1, 45);
/* oklch */ color: oklch(14.1% 0.089 268.7);
Tailwind
colors: {
  custom: {
    50: '#484766',
    500: '#02012d',
    950: '#000000',
  },
}
SCSS
$custom: #02012d;
$custom-light: #484766;
$custom-dark: #000000;
JSON
{
  "hex": "#02012d",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 241.364,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.14076,
    "c": 0.08868,
    "h": 268.7
  },
  "luminance": 0.00224
}

Semantic roles & 50–950 ramp

primary
#02012D
secondary
#717317
accent
#FF29FA
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #02012D

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

Preview Lab → · Contrast checker → · Palette generator →

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