#21268A#21268A

#21268A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.162 H 271.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#21268A
RGBrgb(33, 38, 138)
HSLhsl(237, 61%, 34%)
HSVhsv(237, 76%, 54%)
CMYKcmyk(76.1%, 72.5%, 0%, 45.9%)
CIE-LABlab(22.10, 33.81, -55.81)
CIE-LCHlch(22.10, 65.25, 301.21°)
OKLaboklab(34.25% 0.0054 -0.1615)
OKLCHoklch(34.25% 0.162 271.9)
XYZxyz(5.9062, 3.5439, 24.4126)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21268A #8A8521
analogous
#215A8A #21268A #50218A
triadic
#21268A #8A2126 #268A21
tetradic
#21268A #8A215A #8A8521 #218A50
square
#21268A #8A215A #8A8521 #218A50
split-complementary
#21268A #8A5021 #5A8A21
monochromatic
#090B27 #151859 #21268A #2D34BB #5057D5

Accessibility & contrast

On white

12.29
#21268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#21268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21268A
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21268A#FFFFFF#000000##FFFFFF
##21268A1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21268a;
/* rgb */ color: rgb(33, 38, 138);
/* oklch */ color: oklch(34.3% 0.162 271.9);
Tailwind
colors: {
  custom: {
    50: '#6e61ad',
    500: '#21268a',
    950: '#000000',
  },
}
SCSS
$custom: #21268a;
$custom-light: #6e61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21268a",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 237.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34252,
    "c": 0.16158,
    "h": 271.9
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#21268A
secondary
#B9B34E
accent
#DD43E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #21268A

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

Preview Lab → · Contrast checker → · Palette generator →

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