#21295B#21295B

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

Color values

HEX#21295B
RGBrgb(33, 41, 91)
HSLhsl(232, 47%, 24%)
HSVhsv(232, 64%, 36%)
CMYKcmyk(63.7%, 54.9%, 0%, 64.3%)
CIE-LABlab(18.65, 13.91, -31.20)
CIE-LCHlch(18.65, 34.16, 294.02°)
OKLaboklab(30.4% 0.0048 -0.0893)
OKLCHoklch(30.4% 0.089 273.1)
XYZxyz(3.3078, 2.6643, 10.2354)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21295B #5B5321
analogous
#21465B #21295B #36215B
triadic
#21295B #5B2129 #295B21
tetradic
#21295B #5B2146 #5B5321 #215B36
square
#21295B #5B2146 #5B5321 #215B36
split-complementary
#21295B #5B3621 #465B21
monochromatic
#080A16 #11152E #21295B #313D88 #4251B5

Accessibility & contrast

On white

13.70
#21295B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21295B
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21295B#FFFFFF#000000##FFFFFF
##21295B1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305D
Deuteranopia (green-blind)
#032B5A
Tritanopia (blue-blind)
#00343D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21295b;
/* rgb */ color: rgb(33, 41, 91);
/* oklch */ color: oklch(30.4% 0.089 273.1);
Tailwind
colors: {
  custom: {
    50: '#63628a',
    500: '#21295b',
    950: '#000000',
  },
}
SCSS
$custom: #21295b;
$custom-light: #63628a;
$custom-dark: #000000;
JSON
{
  "hex": "#21295b",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 91
  },
  "hsl": {
    "h": 231.724,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30397,
    "c": 0.08943,
    "h": 273.1
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#21295B
secondary
#8F8549
accent
#C451D6
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#05050C
muted
#7A797D

Preview Lab

Preview with #21295B

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

Preview Lab → · Contrast checker → · Palette generator →

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