#21296F#21296F

#21296F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.120 H 272.7°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#21296F
RGBrgb(33, 41, 111)
HSLhsl(234, 54%, 28%)
HSVhsv(234, 70%, 44%)
CMYKcmyk(70.3%, 63.1%, 0%, 56.5%)
CIE-LABlab(20.27, 21.67, -41.67)
CIE-LCHlch(20.27, 46.97, 297.48°)
OKLaboklab(32.12% 0.0056 -0.1201)
OKLCHoklch(32.12% 0.12 272.7)
XYZxyz(4.2884, 3.0565, 15.3998)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21296F #6F6721
analogous
#21506F #21296F #40216F
triadic
#21296F #6F2129 #296F21
tetradic
#21296F #6F2150 #6F6721 #216F40
square
#21296F #6F2150 #6F6721 #216F40
split-complementary
#21296F #6F4021 #506F21
monochromatic
#070918 #131840 #21296F #2F3A9E #4351C7

Accessibility & contrast

On white

13.03
#21296F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#21296F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21296F
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21296F#FFFFFF#000000##FFFFFF
##21296F1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #21296f;
/* rgb */ color: rgb(33, 41, 111);
/* oklch */ color: oklch(32.1% 0.120 272.7);
Tailwind
colors: {
  custom: {
    50: '#676299',
    500: '#21296f',
    950: '#000000',
  },
}
SCSS
$custom: #21296f;
$custom-light: #676299;
$custom-dark: #000000;
JSON
{
  "hex": "#21296f",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 233.846,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32123,
    "c": 0.12022,
    "h": 272.7
  },
  "luminance": 0.03057
}

Semantic roles & 50–950 ramp

primary
#21296F
secondary
#A39949
accent
#CE4ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21296F

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

Preview Lab → · Contrast checker → · Palette generator →

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