#212279#212279

#212279 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.143 H 274.1°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#212279
RGBrgb(33, 34, 121)
HSLhsl(239, 57%, 30%)
HSVhsv(239, 73%, 47%)
CMYKcmyk(72.7%, 71.9%, 0%, 52.5%)
CIE-LABlab(19.42, 30.18, -49.48)
CIE-LCHlch(19.42, 57.96, 301.38°)
OKLaboklab(31.8% 0.0103 -0.143)
OKLCHoklch(31.8% 0.143 274.1)
XYZxyz(4.6493, 2.8474, 18.3900)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212279 #797821
analogous
#214E79 #212279 #4C2179
triadic
#212279 #792122 #227921
tetradic
#212279 #79214E #797821 #21794C
square
#212279 #79214E #797821 #21794C
split-complementary
#212279 #794C21 #4E7921
monochromatic
#070719 #141449 #212279 #2E30A9 #4749CD

Accessibility & contrast

On white

13.38
#212279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#212279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212279
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212279#FFFFFF#000000##FFFFFF
##2122791.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212279;
/* rgb */ color: rgb(33, 34, 121);
/* oklch */ color: oklch(31.8% 0.143 274.1);
Tailwind
colors: {
  custom: {
    50: '#6a5ea1',
    500: '#212279',
    950: '#000000',
  },
}
SCSS
$custom: #212279;
$custom-light: #6a5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#212279",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 239.318,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31795,
    "c": 0.14338,
    "h": 274.1
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#212279
secondary
#ACAB4A
accent
#DF47E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #212279

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

Preview Lab → · Contrast checker → · Palette generator →

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