#21275F#21275F

#21275F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.3% C 0.099 H 274.3°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#21275F
RGBrgb(33, 39, 95)
HSLhsl(234, 48%, 25%)
HSVhsv(234, 65%, 37%)
CMYKcmyk(65.3%, 58.9%, 0%, 62.7%)
CIE-LABlab(18.37, 16.90, -34.31)
CIE-LCHlch(18.37, 38.24, 296.23°)
OKLaboklab(30.29% 0.0074 -0.0985)
OKLCHoklch(30.29% 0.099 274.3)
XYZxyz(3.4176, 2.6003, 11.1461)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21275F #5F5921
analogous
#21465F #21275F #3A215F
triadic
#21275F #5F2127 #275F21
tetradic
#21275F #5F2146 #5F5921 #215F3A
square
#21275F #5F2146 #5F5921 #215F3A
split-complementary
#21275F #5F3A21 #465F21
monochromatic
#080917 #111432 #21275F #313A8C #414CBA

Accessibility & contrast

On white

13.81
#21275F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#21275F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21275F
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21275F#FFFFFF#000000##FFFFFF
##21275F1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#00343E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21275f;
/* rgb */ color: rgb(33, 39, 95);
/* oklch */ color: oklch(30.3% 0.099 274.3);
Tailwind
colors: {
  custom: {
    50: '#64618d',
    500: '#21275f',
    950: '#000000',
  },
}
SCSS
$custom: #21275f;
$custom-light: #64618d;
$custom-dark: #000000;
JSON
{
  "hex": "#21275f",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 95
  },
  "hsl": {
    "h": 234.194,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30286,
    "c": 0.09874,
    "h": 274.3
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#21275F
secondary
#938C49
accent
#CB50D8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #21275F

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

Preview Lab → · Contrast checker → · Palette generator →

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