#21246E#21246E

#21246E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.125 H 274.6°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#21246E
RGBrgb(33, 36, 110)
HSLhsl(238, 54%, 28%)
HSVhsv(238, 70%, 43%)
CMYKcmyk(70%, 67.3%, 0%, 56.9%)
CIE-LABlab(18.85, 24.76, -43.35)
CIE-LCHlch(18.85, 49.92, 299.73°)
OKLaboklab(31.05% 0.01 -0.125)
OKLCHoklch(31.05% 0.125 274.6)
XYZxyz(4.0716, 2.7105, 15.0574)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21246E #6E6B21
analogous
#214A6E #21246E #44216E
triadic
#21246E #6E2124 #246E21
tetradic
#21246E #6E214A #6E6B21 #216E44
square
#21246E #6E214A #6E6B21 #216E44
split-complementary
#21246E #6E4421 #4A6E21
monochromatic
#070818 #13153F #21246E #2F339D #4348C7

Accessibility & contrast

On white

13.62
#21246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#21246E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21246E
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21246E#FFFFFF#000000##FFFFFF
##21246E1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21246e;
/* rgb */ color: rgb(33, 36, 110);
/* oklch */ color: oklch(31.0% 0.125 274.6);
Tailwind
colors: {
  custom: {
    50: '#675f98',
    500: '#21246e',
    950: '#000000',
  },
}
SCSS
$custom: #21246e;
$custom-light: #675f98;
$custom-dark: #000000;
JSON
{
  "hex": "#21246e",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 237.662,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31048,
    "c": 0.12545,
    "h": 274.6
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#21246E
secondary
#A29E49
accent
#D84BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21246E

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

Preview Lab → · Contrast checker → · Palette generator →

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