#21309F#21309F

#21309F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.178 H 269.3°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#21309F
RGBrgb(33, 48, 159)
HSLhsl(233, 66%, 38%)
HSVhsv(233, 79%, 62%)
CMYKcmyk(79.2%, 69.8%, 0%, 37.6%)
CIE-LABlab(26.56, 35.12, -61.41)
CIE-LCHlch(26.56, 70.74, 299.77°)
OKLaboklab(38.11% -0.0023 -0.1778)
OKLCHoklch(38.11% 0.178 269.3)
XYZxyz(7.9400, 4.9395, 33.3291)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21309F #9F9021
analogous
#216F9F #21309F #51219F
triadic
#21309F #9F2130 #309F21
tetradic
#21309F #9F216F #9F9021 #219F51
square
#21309F #9F216F #9F9021 #219F51
split-complementary
#21309F #9F5121 #6F9F21
monochromatic
#0C113A #16216C #21309F #2C3FD2 #5D6CDD

Accessibility & contrast

On white

10.56
#21309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#21309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21309F
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21309F#FFFFFF#000000##FFFFFF
##21309F1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21309f;
/* rgb */ color: rgb(33, 48, 159);
/* oklch */ color: oklch(38.1% 0.178 269.3);
Tailwind
colors: {
  custom: {
    50: '#7368bc',
    500: '#21309f',
    950: '#000000',
  },
}
SCSS
$custom: #21309f;
$custom-light: #7368bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21309f",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 232.857,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38114,
    "c": 0.17782,
    "h": 269.3
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#21309F
secondary
#C2B55A
accent
#D43FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21309F

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

Preview Lab → · Contrast checker → · Palette generator →

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