#212273#212273

#212273 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.135 H 274.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#212273
RGBrgb(33, 34, 115)
HSLhsl(239, 55%, 29%)
HSVhsv(239, 71%, 45%)
CMYKcmyk(71.3%, 70.4%, 0%, 54.9%)
CIE-LABlab(18.82, 27.97, -46.62)
CIE-LCHlch(18.82, 54.37, 300.96°)
OKLaboklab(31.18% 0.0111 -0.1346)
OKLCHoklch(31.18% 0.135 274.7)
XYZxyz(4.2927, 2.7048, 16.5122)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212273 #737221
analogous
#214B73 #212273 #492173
triadic
#212273 #732122 #227321
tetradic
#212273 #73214B #737221 #217349
square
#212273 #73214B #737221 #217349
split-complementary
#212273 #734921 #4B7321
monochromatic
#070718 #131443 #212273 #2F30A3 #4546CA

Accessibility & contrast

On white

13.63
#212273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212273
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212273#FFFFFF#000000##FFFFFF
##2122731.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212273;
/* rgb */ color: rgb(33, 34, 115);
/* oklch */ color: oklch(31.2% 0.135 274.7);
Tailwind
colors: {
  custom: {
    50: '#695d9c',
    500: '#212273',
    950: '#000000',
  },
}
SCSS
$custom: #212273;
$custom-light: #695d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#212273",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 239.268,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31178,
    "c": 0.1351,
    "h": 274.7
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#212273
secondary
#A6A549
accent
#DD49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212273

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

Preview Lab → · Contrast checker → · Palette generator →

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