#21246B#21246B

#21246B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.121 H 274.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#21246B
RGBrgb(33, 36, 107)
HSLhsl(238, 53%, 27%)
HSVhsv(238, 69%, 42%)
CMYKcmyk(69.2%, 66.4%, 0%, 58%)
CIE-LABlab(18.57, 23.62, -41.85)
CIE-LCHlch(18.57, 48.06, 299.44°)
OKLaboklab(30.76% 0.0102 -0.1207)
OKLCHoklch(30.76% 0.121 274.8)
XYZxyz(3.9110, 2.6463, 14.2117)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21246B #6B6821
analogous
#21496B #21246B #43216B
triadic
#21246B #6B2124 #246B21
tetradic
#21246B #6B2149 #6B6821 #216B43
square
#21246B #6B2149 #6B6821 #216B43
split-complementary
#21246B #6B4321 #496B21
monochromatic
#070817 #13143C #21246B #2F349A #4247C5

Accessibility & contrast

On white

13.73
#21246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#21246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21246B
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21246B#FFFFFF#000000##FFFFFF
##21246B1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21246b;
/* rgb */ color: rgb(33, 36, 107);
/* oklch */ color: oklch(30.8% 0.121 274.8);
Tailwind
colors: {
  custom: {
    50: '#675e96',
    500: '#21246b',
    950: '#000000',
  },
}
SCSS
$custom: #21246b;
$custom-light: #675e96;
$custom-dark: #000000;
JSON
{
  "hex": "#21246b",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 237.568,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30759,
    "c": 0.12109,
    "h": 274.8
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#21246B
secondary
#9F9B49
accent
#D64CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #21246B

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

Preview Lab → · Contrast checker → · Palette generator →

#21246B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva