#21268E#21268E

#21268E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.167 H 271.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#21268E
RGBrgb(33, 38, 142)
HSLhsl(237, 62%, 34%)
HSVhsv(237, 77%, 56%)
CMYKcmyk(76.8%, 73.2%, 0%, 44.3%)
CIE-LABlab(22.52, 35.25, -57.61)
CIE-LCHlch(22.52, 67.54, 301.46°)
OKLaboklab(34.68% 0.0048 -0.1667)
OKLCHoklch(34.68% 0.167 271.7)
XYZxyz(6.2011, 3.6619, 25.9659)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21268E #8E8921
analogous
#215D8E #21268E #53218E
triadic
#21268E #8E2126 #268E21
tetradic
#21268E #8E215D #8E8921 #218E53
square
#21268E #8E215D #8E8921 #218E53
split-complementary
#21268E #8E5321 #5D8E21
monochromatic
#0A0B2B #15195C #21268E #2D33C0 #5259D7

Accessibility & contrast

On white

12.12
#21268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#21268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21268E
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21268E#FFFFFF#000000##FFFFFF
##21268E1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21268e;
/* rgb */ color: rgb(33, 38, 142);
/* oklch */ color: oklch(34.7% 0.167 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f61b0',
    500: '#21268e',
    950: '#000000',
  },
}
SCSS
$custom: #21268e;
$custom-light: #6f61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21268e",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 237.248,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34678,
    "c": 0.16681,
    "h": 271.7
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#21268E
secondary
#BAB650
accent
#DE42E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21268E

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

Preview Lab → · Contrast checker → · Palette generator →

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