#021234#021234

#021234 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.4% C 0.072 H 260.8°. Best body text is #FFFFFF at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#021234
RGBrgb(2, 18, 52)
HSLhsl(221, 93%, 11%)
HSVhsv(221, 96%, 20%)
CMYKcmyk(96.2%, 65.4%, 0%, 79.6%)
CIE-LABlab(6.26, 8.27, -24.20)
CIE-LCHlch(6.26, 25.58, 288.86°)
OKLaboklab(19.37% -0.0115 -0.0706)
OKLCHoklch(19.37% 0.072 260.8)
XYZxyz(0.8609, 0.6933, 3.3366)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021234 #342402
analogous
#022B34 #021234 #0B0234
triadic
#021234 #340212 #123402
tetradic
#021234 #34022B #342402 #02340B
square
#021234 #34022B #342402 #02340B
split-complementary
#021234 #340B02 #2B3402
monochromatic
#010A1D #010A1D #021234 #04266F #073BAA

Accessibility & contrast

On white

18.44
#021234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021234
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021234#FFFFFF#000000##FFFFFF
##0212341.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#001233
Tritanopia (blue-blind)
#001B20
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021234;
/* rgb */ color: rgb(2, 18, 52);
/* oklch */ color: oklch(19.4% 0.072 260.8);
Tailwind
colors: {
  custom: {
    50: '#4b4f6c',
    500: '#021234',
    950: '#000000',
  },
}
SCSS
$custom: #021234;
$custom-light: #4b4f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#021234",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 52
  },
  "hsl": {
    "h": 220.8,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.19372,
    "c": 0.07157,
    "h": 260.8
  },
  "luminance": 0.00693
}

Semantic roles & 50–950 ramp

primary
#021234
secondary
#785A1A
accent
#BA29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #021234

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

Preview Lab → · Contrast checker → · Palette generator →

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