#021231#021231

#021231 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.1% C 0.067 H 259.7°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#021231
RGBrgb(2, 18, 49)
HSLhsl(220, 92%, 10%)
HSVhsv(220, 96%, 19%)
CMYKcmyk(95.9%, 63.3%, 0%, 80.8%)
CIE-LABlab(6.03, 6.61, -22.38)
CIE-LCHlch(6.03, 23.33, 286.46°)
OKLaboklab(19.07% -0.0119 -0.0655)
OKLCHoklch(19.07% 0.067 259.7)
XYZxyz(0.7955, 0.6672, 2.9920)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021231 #312102
analogous
#022A31 #021231 #090231
triadic
#021231 #310212 #123102
tetradic
#021231 #31022A #312102 #023109
square
#021231 #31022A #312102 #023109
split-complementary
#021231 #310902 #2A3102
monochromatic
#010B1D #010B1D #021231 #04286C #073DA7

Accessibility & contrast

On white

18.53
#021231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#021231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021231
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021231#FFFFFF#000000##FFFFFF
##0212311.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011632
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #021231;
/* rgb */ color: rgb(2, 18, 49);
/* oklch */ color: oklch(19.1% 0.067 259.7);
Tailwind
colors: {
  custom: {
    50: '#4a4f69',
    500: '#021231',
    950: '#000000',
  },
}
SCSS
$custom: #021231;
$custom-light: #4a4f69;
$custom-dark: #000000;
JSON
{
  "hex": "#021231",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 219.574,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.19069,
    "c": 0.06658,
    "h": 259.7
  },
  "luminance": 0.00667
}

Semantic roles & 50–950 ramp

primary
#021231
secondary
#755619
accent
#B629FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021231

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

Preview Lab → · Contrast checker → · Palette generator →

#021231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva