#212FA8#212FA8

#212FA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.190 H 269.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#212FA8
RGBrgb(33, 47, 168)
HSLhsl(234, 67%, 39%)
HSVhsv(234, 80%, 66%)
CMYKcmyk(80.4%, 72%, 0%, 34.1%)
CIE-LABlab(27.25, 39.00, -65.72)
CIE-LCHlch(27.25, 76.42, 300.68°)
OKLaboklab(38.89% -0.0028 -0.1904)
OKLCHoklch(38.89% 0.19 269.2)
XYZxyz(8.7092, 5.1825, 37.5795)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212FA8 #A89A21
analogous
#2173A8 #212FA8 #5721A8
triadic
#212FA8 #A8212F #2FA821
tetradic
#212FA8 #A82173 #A89A21 #21A857
square
#212FA8 #A82173 #A89A21 #21A857
split-complementary
#212FA8 #A85721 #73A821
monochromatic
#0D1242 #172175 #212FA8 #3041D6 #6370E0

Accessibility & contrast

On white

10.31
#212FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#212FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212FA8
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212FA8#FFFFFF#000000##FFFFFF
##212FA81.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #212fa8;
/* rgb */ color: rgb(33, 47, 168);
/* oklch */ color: oklch(38.9% 0.190 269.2);
Tailwind
colors: {
  custom: {
    50: '#7568c3',
    500: '#212fa8',
    950: '#000000',
  },
}
SCSS
$custom: #212fa8;
$custom-light: #7568c3;
$custom-dark: #000000;
JSON
{
  "hex": "#212fa8",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 233.778,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38885,
    "c": 0.19041,
    "h": 269.2
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#212FA8
secondary
#C5BB5F
accent
#D83EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212FA8

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

Preview Lab → · Contrast checker → · Palette generator →

#212FA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva