#21267F#21267F

#21267F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.147 H 272.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#21267F
RGBrgb(33, 38, 127)
HSLhsl(237, 59%, 31%)
HSVhsv(237, 74%, 50%)
CMYKcmyk(74%, 70.1%, 0%, 50.2%)
CIE-LABlab(20.99, 29.78, -50.73)
CIE-LCHlch(20.99, 58.82, 300.41°)
OKLaboklab(33.11% 0.0068 -0.1466)
OKLCHoklch(33.11% 0.147 272.7)
XYZxyz(5.1498, 3.2414, 20.4288)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21267F #7F7A21
analogous
#21557F #21267F #4B217F
triadic
#21267F #7F2126 #267F21
tetradic
#21267F #7F2155 #7F7A21 #217F4B
square
#21267F #7F2155 #7F7A21 #217F4B
split-complementary
#21267F #7F4B21 #557F21
monochromatic
#08091E #14174E #21267F #2E35B0 #4A51D0

Accessibility & contrast

On white

12.74
#21267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#21267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21267F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21267F#FFFFFF#000000##FFFFFF
##21267F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21267f;
/* rgb */ color: rgb(33, 38, 127);
/* oklch */ color: oklch(33.1% 0.147 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b60a5',
    500: '#21267f',
    950: '#000000',
  },
}
SCSS
$custom: #21267f;
$custom-light: #6b60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21267f",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 236.809,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33108,
    "c": 0.14681,
    "h": 272.7
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#21267F
secondary
#B2AC4A
accent
#DA46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #21267F

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

Preview Lab → · Contrast checker → · Palette generator →

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