#21317F#21317F

#21317F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.133 H 269.4°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#21317F
RGBrgb(33, 49, 127)
HSLhsl(230, 59%, 31%)
HSVhsv(230, 74%, 50%)
CMYKcmyk(74%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.84, 22.31, -46.06)
CIE-LCHlch(23.84, 51.17, 295.84°)
OKLaboklab(35.21% -0.0013 -0.1329)
OKLCHoklch(35.21% 0.133 269.4)
XYZxyz(5.5550, 4.0517, 20.5639)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21317F #7F6F21
analogous
#21607F #21317F #40217F
triadic
#21317F #7F2131 #317F21
tetradic
#21317F #7F2160 #7F6F21 #217F40
square
#21317F #7F2160 #7F6F21 #217F40
split-complementary
#21317F #7F4021 #607F21
monochromatic
#080C1E #141E4E #21317F #2E44B0 #4A61D0

Accessibility & contrast

On white

11.60
#21317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#21317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21317F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21317F#FFFFFF#000000##FFFFFF
##21317F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21317f;
/* rgb */ color: rgb(33, 49, 127);
/* oklch */ color: oklch(35.2% 0.133 269.4);
Tailwind
colors: {
  custom: {
    50: '#6a68a5',
    500: '#21317f',
    950: '#000000',
  },
}
SCSS
$custom: #21317f;
$custom-light: #6a68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21317f",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 229.787,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35206,
    "c": 0.13288,
    "h": 269.4
  },
  "luminance": 0.04052
}

Semantic roles & 50–950 ramp

primary
#21317F
secondary
#B2A04A
accent
#C746E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21317F

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

Preview Lab → · Contrast checker → · Palette generator →

#21317F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva