#21246F#21246F

#21246F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.127 H 274.5°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#21246F
RGBrgb(33, 36, 111)
HSLhsl(238, 54%, 28%)
HSVhsv(238, 70%, 44%)
CMYKcmyk(70.3%, 67.6%, 0%, 56.5%)
CIE-LABlab(18.94, 25.13, -43.84)
CIE-LCHlch(18.94, 50.54, 299.82°)
OKLaboklab(31.15% 0.0099 -0.1265)
OKLCHoklch(31.15% 0.127 274.5)
XYZxyz(4.1264, 2.7324, 15.3458)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21246F #6F6C21
analogous
#214B6F #21246F #45216F
triadic
#21246F #6F2124 #246F21
tetradic
#21246F #6F214B #6F6C21 #216F45
square
#21246F #6F214B #6F6C21 #216F45
split-complementary
#21246F #6F4521 #4B6F21
monochromatic
#070818 #131540 #21246F #2F339E #4348C7

Accessibility & contrast

On white

13.58
#21246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21246F
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21246F#FFFFFF#000000##FFFFFF
##21246F1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21246f;
/* rgb */ color: rgb(33, 36, 111);
/* oklch */ color: oklch(31.1% 0.127 274.5);
Tailwind
colors: {
  custom: {
    50: '#685f99',
    500: '#21246f',
    950: '#000000',
  },
}
SCSS
$custom: #21246f;
$custom-light: #685f99;
$custom-dark: #000000;
JSON
{
  "hex": "#21246f",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 237.692,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31145,
    "c": 0.12689,
    "h": 274.5
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#21246F
secondary
#A39F49
accent
#D84ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21246F

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

Preview Lab → · Contrast checker → · Palette generator →

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