#021B40#021B40

#021B40 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 22.9% C 0.078 H 257.7°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#021B40
RGBrgb(2, 27, 64)
HSLhsl(216, 94%, 13%)
HSVhsv(216, 97%, 25%)
CMYKcmyk(96.9%, 57.8%, 0%, 74.9%)
CIE-LABlab(10.31, 7.44, -26.28)
CIE-LCHlch(10.31, 27.31, 285.81°)
OKLaboklab(22.91% -0.0166 -0.0758)
OKLCHoklch(22.91% 0.078 257.7)
XYZxyz(1.3420, 1.1668, 5.0040)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021B40 #402702
analogous
#023A40 #021B40 #080240
triadic
#021B40 #40021B #1B4002
tetradic
#021B40 #40023A #402702 #024008
square
#021B40 #40023A #402702 #024008
split-complementary
#021B40 #400802 #3A4002
monochromatic
#010D1E #010D1E #021B40 #04347B #064DB7

Accessibility & contrast

On white

17.03
#021B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#021B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021B40
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021B40#FFFFFF#000000##FFFFFF
##021B401.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #021b40;
/* rgb */ color: rgb(2, 27, 64);
/* oklch */ color: oklch(22.9% 0.078 257.7);
Tailwind
colors: {
  custom: {
    50: '#4f5675',
    500: '#021b40',
    950: '#000000',
  },
}
SCSS
$custom: #021b40;
$custom-light: #4f5675;
$custom-dark: #000000;
JSON
{
  "hex": "#021b40",
  "rgb": {
    "r": 2,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 215.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22912,
    "c": 0.07757,
    "h": 257.7
  },
  "luminance": 0.01167
}

Semantic roles & 50–950 ramp

primary
#021B40
secondary
#83591B
accent
#A929FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #021B40

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

Preview Lab → · Contrast checker → · Palette generator →

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