#021236#021236

#021236 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.6% C 0.075 H 261.3°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#021236
RGBrgb(2, 18, 54)
HSLhsl(222, 93%, 11%)
HSVhsv(222, 96%, 21%)
CMYKcmyk(96.3%, 66.7%, 0%, 78.8%)
CIE-LABlab(6.43, 9.38, -25.40)
CIE-LCHlch(6.43, 27.07, 290.27°)
OKLaboklab(19.58% -0.0113 -0.074)
OKLCHoklch(19.58% 0.075 261.3)
XYZxyz(0.9070, 0.7117, 3.5789)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021236 #362602
analogous
#022C36 #021236 #0C0236
triadic
#021236 #360212 #123602
tetradic
#021236 #36022C #362602 #02360C
square
#021236 #36022C #362602 #02360C
split-complementary
#021236 #360C02 #2C3602
monochromatic
#010A1E #010A1E #021236 #042671 #0639AC

Accessibility & contrast

On white

18.38
#021236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021236
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021236#FFFFFF#000000##FFFFFF
##0212361.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#001235
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021236;
/* rgb */ color: rgb(2, 18, 54);
/* oklch */ color: oklch(19.6% 0.075 261.3);
Tailwind
colors: {
  custom: {
    50: '#4c4f6d',
    500: '#021236',
    950: '#000000',
  },
}
SCSS
$custom: #021236;
$custom-light: #4c4f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#021236",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 221.538,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.1958,
    "c": 0.07486,
    "h": 261.3
  },
  "luminance": 0.00712
}

Semantic roles & 50–950 ramp

primary
#021236
secondary
#7A5C1A
accent
#BD29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #021236

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

Preview Lab → · Contrast checker → · Palette generator →

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