#21267D#21267D

#21267D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.144 H 272.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#21267D
RGBrgb(33, 38, 125)
HSLhsl(237, 58%, 31%)
HSVhsv(237, 74%, 49%)
CMYKcmyk(73.6%, 69.6%, 0%, 51%)
CIE-LABlab(20.79, 29.04, -49.78)
CIE-LCHlch(20.79, 57.63, 300.25°)
OKLaboklab(32.91% 0.0071 -0.1439)
OKLCHoklch(32.91% 0.144 272.8)
XYZxyz(5.0207, 3.1897, 19.7491)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21267D #7D7821
analogous
#21547D #21267D #4A217D
triadic
#21267D #7D2126 #267D21
tetradic
#21267D #7D2154 #7D7821 #217D4A
square
#21267D #7D2154 #7D7821 #217D4A
split-complementary
#21267D #7D4A21 #547D21
monochromatic
#07091C #14174D #21267D #2E35AD #4951CF

Accessibility & contrast

On white

12.82
#21267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#21267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21267D
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21267D#FFFFFF#000000##FFFFFF
##21267D1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21267d;
/* rgb */ color: rgb(33, 38, 125);
/* oklch */ color: oklch(32.9% 0.144 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b60a4',
    500: '#21267d',
    950: '#000000',
  },
}
SCSS
$custom: #21267d;
$custom-light: #6b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21267d",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 236.739,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32905,
    "c": 0.14406,
    "h": 272.8
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#21267D
secondary
#B0AA4A
accent
#D946E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #21267D

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

Preview Lab → · Contrast checker → · Palette generator →

#21267D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva