#021B39#021B39

#021B39 is a very dark, moderate cyan. Relative luminance 0.011; OKLCH L 22.3% C 0.066 H 254.2°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#021B39
RGBrgb(2, 27, 57)
HSLhsl(213, 93%, 12%)
HSVhsv(213, 96%, 22%)
CMYKcmyk(96.5%, 52.6%, 0%, 77.6%)
CIE-LABlab(9.74, 4.03, -22.23)
CIE-LCHlch(9.74, 22.59, 280.28°)
OKLaboklab(22.29% -0.018 -0.0639)
OKLCHoklch(22.29% 0.066 254.2)
XYZxyz(1.1552, 1.0920, 4.0200)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021B39 #392002
analogous
#023739 #021B39 #040239
triadic
#021B39 #39021B #1B3902
tetradic
#021B39 #390237 #392002 #023904
square
#021B39 #390237 #392002 #023904
split-complementary
#021B39 #390402 #373902
monochromatic
#010E1E #010E1E #021B39 #043774 #0653AF

Accessibility & contrast

On white

17.24
#021B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#021B39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021B39
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021B39#FFFFFF#000000##FFFFFF
##021B391.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1E3A
Deuteranopia (green-blind)
#011938
Tritanopia (blue-blind)
#002227
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #021b39;
/* rgb */ color: rgb(2, 27, 57);
/* oklch */ color: oklch(22.3% 0.066 254.2);
Tailwind
colors: {
  custom: {
    50: '#4d566f',
    500: '#021b39',
    950: '#000000',
  },
}
SCSS
$custom: #021b39;
$custom-light: #4d566f;
$custom-dark: #000000;
JSON
{
  "hex": "#021b39",
  "rgb": {
    "r": 2,
    "g": 27,
    "b": 57
  },
  "hsl": {
    "h": 212.727,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22286,
    "c": 0.06636,
    "h": 254.2
  },
  "luminance": 0.01092
}

Semantic roles & 50–950 ramp

primary
#021B39
secondary
#7D501A
accent
#9E29FF
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020307
muted
#78787A

Preview Lab

Preview with #021B39

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

Preview Lab → · Contrast checker → · Palette generator →

#021B39 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva