#212FA0#212FA0

#212FA0 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.180 H 269.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#212FA0
RGBrgb(33, 47, 160)
HSLhsl(233, 66%, 38%)
HSVhsv(233, 79%, 63%)
CMYKcmyk(79.4%, 70.6%, 0%, 37.3%)
CIE-LABlab(26.43, 36.12, -62.23)
CIE-LCHlch(26.43, 71.95, 300.13°)
OKLaboklab(38.05% -0.0019 -0.1802)
OKLCHoklch(38.05% 0.18 269.4)
XYZxyz(7.9867, 4.8935, 33.7745)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212FA0 #A09221
analogous
#216EA0 #212FA0 #5321A0
triadic
#212FA0 #A0212F #2FA021
tetradic
#212FA0 #A0216E #A09221 #21A053
square
#212FA0 #A0216E #A09221 #21A053
split-complementary
#212FA0 #A05321 #6EA021
monochromatic
#0C113B #17206D #212FA0 #2B3ED3 #5E6CDE

Accessibility & contrast

On white

10.61
#212FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#212FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212FA0
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212FA0#FFFFFF#000000##FFFFFF
##212FA01.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212fa0;
/* rgb */ color: rgb(33, 47, 160);
/* oklch */ color: oklch(38.0% 0.180 269.4);
Tailwind
colors: {
  custom: {
    50: '#7368bd',
    500: '#212fa0',
    950: '#000000',
  },
}
SCSS
$custom: #212fa0;
$custom-light: #7368bd;
$custom-dark: #000000;
JSON
{
  "hex": "#212fa0",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 233.386,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38049,
    "c": 0.18023,
    "h": 269.4
  },
  "luminance": 0.04894
}

Semantic roles & 50–950 ramp

primary
#212FA0
secondary
#C2B75B
accent
#D63FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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