#21338F#21338F

#21338F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.153 H 268.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#21338F
RGBrgb(33, 51, 143)
HSLhsl(230, 63%, 35%)
HSVhsv(230, 77%, 56%)
CMYKcmyk(76.9%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.78, 27.13, -52.87)
CIE-LCHlch(25.78, 59.43, 297.17°)
OKLaboklab(37.08% -0.003 -0.1528)
OKLCHoklch(37.08% 0.153 268.9)
XYZxyz(6.7672, 4.6734, 26.5267)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21338F #8F7D21
analogous
#216A8F #21338F #46218F
triadic
#21338F #8F2133 #338F21
tetradic
#21338F #8F216A #8F7D21 #218F46
square
#21338F #8F216A #8F7D21 #218F46
split-complementary
#21338F #8F4621 #6A8F21
monochromatic
#0A102C #16215D #21338F #2C45C1 #5369D7

Accessibility & contrast

On white

10.85
#21338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#21338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21338F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21338F#FFFFFF#000000##FFFFFF
##21338F1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21338f;
/* rgb */ color: rgb(33, 51, 143);
/* oklch */ color: oklch(37.1% 0.153 268.9);
Tailwind
colors: {
  custom: {
    50: '#6e6ab1',
    500: '#21338f',
    950: '#000000',
  },
}
SCSS
$custom: #21338f;
$custom-light: #6e6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#21338f",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 230.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37081,
    "c": 0.15287,
    "h": 268.9
  },
  "luminance": 0.04674
}

Semantic roles & 50–950 ramp

primary
#21338F
secondary
#BBAA51
accent
#CB42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21338F

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

Preview Lab → · Contrast checker → · Palette generator →

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