#212068#212068

#212068 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.7% C 0.122 H 276.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#212068
RGBrgb(33, 32, 104)
HSLhsl(241, 53%, 27%)
HSVhsv(241, 69%, 41%)
CMYKcmyk(68.3%, 69.2%, 0%, 59.2%)
CIE-LABlab(17.25, 25.23, -42.04)
CIE-LCHlch(17.25, 49.03, 300.97°)
OKLaboklab(29.71% 0.014 -0.1212)
OKLCHoklch(29.71% 0.122 276.6)
XYZxyz(3.6416, 2.3555, 13.3568)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212068 #676820
analogous
#204368 #212068 #452068
triadic
#212068 #682120 #206821
tetradic
#212068 #682043 #676820 #206845
square
#212068 #682043 #676820 #206845
split-complementary
#212068 #684520 #436820
monochromatic
#070717 #121239 #212068 #302E97 #403FC4

Accessibility & contrast

On white

14.27
#212068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#212068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212068
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212068#FFFFFF#000000##FFFFFF
##2120681.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212068;
/* rgb */ color: rgb(33, 32, 104);
/* oklch */ color: oklch(29.7% 0.122 276.6);
Tailwind
colors: {
  custom: {
    50: '#665c94',
    500: '#212068',
    950: '#000000',
  },
}
SCSS
$custom: #212068;
$custom-light: #665c94;
$custom-dark: #000000;
JSON
{
  "hex": "#212068",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 104
  },
  "hsl": {
    "h": 240.833,
    "s": 52.941,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29711,
    "c": 0.12206,
    "h": 276.6
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#212068
secondary
#9B9C48
accent
#DC4BDA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212068

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

Preview Lab → · Contrast checker → · Palette generator →

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