#21268C#21268C

#21268C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.164 H 271.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#21268C
RGBrgb(33, 38, 140)
HSLhsl(237, 62%, 34%)
HSVhsv(237, 76%, 55%)
CMYKcmyk(76.4%, 72.9%, 0%, 45.1%)
CIE-LABlab(22.31, 34.53, -56.71)
CIE-LCHlch(22.31, 66.40, 301.34°)
OKLaboklab(34.46% 0.0051 -0.1641)
OKLCHoklch(34.46% 0.164 271.8)
XYZxyz(6.0523, 3.6024, 25.1822)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21268C #8C8721
analogous
#215C8C #21268C #52218C
triadic
#21268C #8C2126 #268C21
tetradic
#21268C #8C215C #8C8721 #218C52
square
#21268C #8C215C #8C8721 #218C52
split-complementary
#21268C #8C5221 #5C8C21
monochromatic
#0A0B29 #15195A #21268C #2D33BE #5158D6

Accessibility & contrast

On white

12.21
#21268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#21268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21268C
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21268C#FFFFFF#000000##FFFFFF
##21268C1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21268c;
/* rgb */ color: rgb(33, 38, 140);
/* oklch */ color: oklch(34.5% 0.164 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f61af',
    500: '#21268c',
    950: '#000000',
  },
}
SCSS
$custom: #21268c;
$custom-light: #6f61af;
$custom-dark: #000000;
JSON
{
  "hex": "#21268c",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 237.196,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34464,
    "c": 0.1642,
    "h": 271.8
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#21268C
secondary
#B9B54F
accent
#DD43E5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #21268C

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

Preview Lab → · Contrast checker → · Palette generator →

#21268C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva