#212272#212272

#212272 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.134 H 274.8°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#212272
RGBrgb(33, 34, 114)
HSLhsl(239, 55%, 29%)
HSVhsv(239, 71%, 45%)
CMYKcmyk(71.1%, 70.2%, 0%, 55.3%)
CIE-LABlab(18.72, 27.60, -46.14)
CIE-LCHlch(18.72, 53.76, 300.89°)
OKLaboklab(31.08% 0.0112 -0.1332)
OKLCHoklch(31.08% 0.134 274.8)
XYZxyz(4.2355, 2.6819, 16.2108)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212272 #727121
analogous
#214B72 #212272 #492172
triadic
#212272 #722122 #227221
tetradic
#212272 #72214B #727121 #217249
square
#212272 #72214B #727121 #217249
split-complementary
#212272 #724921 #4B7221
monochromatic
#070718 #131443 #212272 #2F30A1 #4446C9

Accessibility & contrast

On white

13.67
#212272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#212272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212272
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212272#FFFFFF#000000##FFFFFF
##2122721.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212272;
/* rgb */ color: rgb(33, 34, 114);
/* oklch */ color: oklch(31.1% 0.134 274.8);
Tailwind
colors: {
  custom: {
    50: '#695d9b',
    500: '#212272',
    950: '#000000',
  },
}
SCSS
$custom: #212272;
$custom-light: #695d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#212272",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 239.259,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31076,
    "c": 0.1337,
    "h": 274.8
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#212272
secondary
#A5A449
accent
#DD49DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212272

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

Preview Lab → · Contrast checker → · Palette generator →

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