#021232#021232

#021232 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.2% C 0.068 H 260.1°. Best body text is #FFFFFF at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#021232
RGBrgb(2, 18, 50)
HSLhsl(220, 92%, 10%)
HSVhsv(220, 96%, 20%)
CMYKcmyk(96%, 64%, 0%, 80.4%)
CIE-LABlab(6.10, 7.16, -22.99)
CIE-LCHlch(6.10, 24.08, 287.29°)
OKLaboklab(19.17% -0.0117 -0.0672)
OKLCHoklch(19.17% 0.068 260.1)
XYZxyz(0.8169, 0.6757, 3.1044)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021232 #322202
analogous
#022A32 #021232 #0A0232
triadic
#021232 #320212 #123202
tetradic
#021232 #32022A #322202 #02320A
square
#021232 #32022A #322202 #02320A
split-complementary
#021232 #320A02 #2A3202
monochromatic
#010B1D #010B1D #021232 #04276D #073CA8

Accessibility & contrast

On white

18.50
#021232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#021232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021232
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021232#FFFFFF#000000##FFFFFF
##0212321.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001633
Deuteranopia (green-blind)
#001131
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021232;
/* rgb */ color: rgb(2, 18, 50);
/* oklch */ color: oklch(19.2% 0.068 260.1);
Tailwind
colors: {
  custom: {
    50: '#4b4f6a',
    500: '#021232',
    950: '#000000',
  },
}
SCSS
$custom: #021232;
$custom-light: #4b4f6a;
$custom-dark: #000000;
JSON
{
  "hex": "#021232",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 220,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19169,
    "c": 0.06825,
    "h": 260.1
  },
  "luminance": 0.00676
}

Semantic roles & 50–950 ramp

primary
#021232
secondary
#765719
accent
#B829FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021232

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

Preview Lab → · Contrast checker → · Palette generator →

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