#212679#212679

#212679 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.139 H 273.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#212679
RGBrgb(33, 38, 121)
HSLhsl(237, 57%, 30%)
HSVhsv(237, 73%, 47%)
CMYKcmyk(72.7%, 68.6%, 0%, 52.5%)
CIE-LABlab(20.40, 27.54, -47.88)
CIE-LCHlch(20.40, 55.23, 299.91°)
OKLaboklab(32.5% 0.0075 -0.1383)
OKLCHoklch(32.5% 0.139 273.1)
XYZxyz(4.7703, 3.0896, 18.4304)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212679 #797421
analogous
#215279 #212679 #482179
triadic
#212679 #792126 #267921
tetradic
#212679 #792152 #797421 #217948
square
#212679 #792152 #797421 #217948
split-complementary
#212679 #794821 #527921
monochromatic
#070819 #141749 #212679 #2E35A9 #474FCD

Accessibility & contrast

On white

12.98
#212679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212679
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212679#FFFFFF#000000##FFFFFF
##2126791.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212679;
/* rgb */ color: rgb(33, 38, 121);
/* oklch */ color: oklch(32.5% 0.139 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a60a1',
    500: '#212679',
    950: '#000000',
  },
}
SCSS
$custom: #212679;
$custom-light: #6a60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#212679",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 236.591,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32503,
    "c": 0.13851,
    "h": 273.1
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#212679
secondary
#ACA64A
accent
#D847E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212679

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

Preview Lab → · Contrast checker → · Palette generator →

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