#21248B#21248B

#21248B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.165 H 272.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#21248B
RGBrgb(33, 36, 139)
HSLhsl(238, 62%, 34%)
HSVhsv(238, 76%, 55%)
CMYKcmyk(76.3%, 74.1%, 0%, 45.5%)
CIE-LABlab(21.76, 35.41, -57.00)
CIE-LCHlch(21.76, 67.11, 301.85°)
OKLaboklab(34.04% 0.0063 -0.165)
OKLCHoklch(34.04% 0.165 272.2)
XYZxyz(5.9167, 3.4485, 24.7749)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21248B #8B8821
analogous
#21598B #21248B #53218B
triadic
#21248B #8B2124 #248B21
tetradic
#21248B #8B2159 #8B8821 #218B53
square
#21248B #8B2159 #8B8821 #218B53
split-complementary
#21248B #8B5321 #598B21
monochromatic
#0A0A28 #15175A #21248B #2D31BC #5155D6

Accessibility & contrast

On white

12.43
#21248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#21248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21248B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21248B#FFFFFF#000000##FFFFFF
##21248B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21248b;
/* rgb */ color: rgb(33, 36, 139);
/* oklch */ color: oklch(34.0% 0.165 272.2);
Tailwind
colors: {
  custom: {
    50: '#6f60ae',
    500: '#21248b',
    950: '#000000',
  },
}
SCSS
$custom: #21248b;
$custom-light: #6f60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21248b",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 238.302,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34037,
    "c": 0.16508,
    "h": 272.2
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#21248B
secondary
#B9B64F
accent
#E043E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #21248B

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

Preview Lab → · Contrast checker → · Palette generator →

#21248B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva