#021233#021233

#021233 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.3% C 0.070 H 260.4°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#021233
RGBrgb(2, 18, 51)
HSLhsl(220, 92%, 10%)
HSVhsv(220, 96%, 20%)
CMYKcmyk(96.1%, 64.7%, 0%, 80%)
CIE-LABlab(6.18, 7.71, -23.60)
CIE-LCHlch(6.18, 24.83, 288.09°)
OKLaboklab(19.27% -0.0116 -0.0689)
OKLCHoklch(19.27% 0.07 260.4)
XYZxyz(0.8387, 0.6844, 3.2192)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021233 #332302
analogous
#022A33 #021233 #0A0233
triadic
#021233 #330212 #123302
tetradic
#021233 #33022A #332302 #02330A
square
#021233 #33022A #332302 #02330A
split-complementary
#021233 #330A02 #2A3302
monochromatic
#010A1D #010A1D #021233 #04276E #073CA9

Accessibility & contrast

On white

18.47
#021233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021233
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021233#FFFFFF#000000##FFFFFF
##0212331.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001634
Deuteranopia (green-blind)
#001132
Tritanopia (blue-blind)
#001A20
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021233;
/* rgb */ color: rgb(2, 18, 51);
/* oklch */ color: oklch(19.3% 0.070 260.4);
Tailwind
colors: {
  custom: {
    50: '#4b4f6b',
    500: '#021233',
    950: '#000000',
  },
}
SCSS
$custom: #021233;
$custom-light: #4b4f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#021233",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 51
  },
  "hsl": {
    "h": 220.408,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.1927,
    "c": 0.06991,
    "h": 260.4
  },
  "luminance": 0.00685
}

Semantic roles & 50–950 ramp

primary
#021233
secondary
#77591A
accent
#B929FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021233

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

Preview Lab → · Contrast checker → · Palette generator →

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