#212255#212255

#212255 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.4% C 0.090 H 278.1°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#212255
RGBrgb(33, 34, 85)
HSLhsl(239, 44%, 23%)
HSVhsv(239, 61%, 33%)
CMYKcmyk(61.2%, 60%, 0%, 66.7%)
CIE-LABlab(16.12, 16.67, -31.26)
CIE-LCHlch(16.12, 35.43, 298.07°)
OKLaboklab(28.35% 0.0127 -0.0896)
OKLCHoklch(28.35% 0.09 278.1)
XYZxyz(2.8384, 2.1231, 8.8528)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212255 #555421
analogous
#213C55 #212255 #3A2155
triadic
#212255 #552122 #225521
tetradic
#212255 #55213C #555421 #21553A
square
#212255 #55213C #555421 #21553A
split-complementary
#212255 #553A21 #3C5521
monochromatic
#090916 #101029 #212255 #323481 #4345AD

Accessibility & contrast

On white

14.74
#212255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#212255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212255
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212255#FFFFFF#000000##FFFFFF
##2122551.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022A57
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#052E37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #212255;
/* rgb */ color: rgb(33, 34, 85);
/* oklch */ color: oklch(28.4% 0.090 278.1);
Tailwind
colors: {
  custom: {
    50: '#625d85',
    500: '#212255',
    950: '#000000',
  },
}
SCSS
$custom: #212255;
$custom-light: #625d85;
$custom-dark: #000000;
JSON
{
  "hex": "#212255",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 238.846,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28354,
    "c": 0.09046,
    "h": 278.1
  },
  "luminance": 0.02123
}

Semantic roles & 50–950 ramp

primary
#212255
secondary
#898849
accent
#D154D4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212255

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

Preview Lab → · Contrast checker → · Palette generator →

#212255 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva