#21295E#21295E

#21295E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.094 H 273.1°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#21295E
RGBrgb(33, 41, 94)
HSLhsl(232, 48%, 25%)
HSVhsv(232, 65%, 37%)
CMYKcmyk(64.9%, 56.4%, 0%, 63.1%)
CIE-LABlab(18.87, 15.07, -32.83)
CIE-LCHlch(18.87, 36.12, 294.66°)
OKLaboklab(30.64% 0.0051 -0.0941)
OKLCHoklch(30.64% 0.094 273.1)
XYZxyz(3.4399, 2.7171, 10.9307)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21295E #5E5621
analogous
#21485E #21295E #38215E
triadic
#21295E #5E2129 #295E21
tetradic
#21295E #5E2148 #5E5621 #215E38
square
#21295E #5E2148 #5E5621 #215E38
split-complementary
#21295E #5E3821 #485E21
monochromatic
#080A17 #111531 #21295E #313D8B #4151B9

Accessibility & contrast

On white

13.61
#21295E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21295E
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21295E#FFFFFF#000000##FFFFFF
##21295E1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093160
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#00353F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21295e;
/* rgb */ color: rgb(33, 41, 94);
/* oklch */ color: oklch(30.6% 0.094 273.1);
Tailwind
colors: {
  custom: {
    50: '#63628c',
    500: '#21295e',
    950: '#000000',
  },
}
SCSS
$custom: #21295e;
$custom-light: #63628c;
$custom-dark: #000000;
JSON
{
  "hex": "#21295e",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 94
  },
  "hsl": {
    "h": 232.131,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30641,
    "c": 0.09422,
    "h": 273.1
  },
  "luminance": 0.02717
}

Semantic roles & 50–950 ramp

primary
#21295E
secondary
#928949
accent
#C650D8
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #21295E

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

Preview Lab → · Contrast checker → · Palette generator →

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