#212FA7#212FA7

#212FA7 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.189 H 269.2°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#212FA7
RGBrgb(33, 47, 167)
HSLhsl(234, 67%, 39%)
HSVhsv(234, 80%, 65%)
CMYKcmyk(80.2%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.15, 38.64, -65.29)
CIE-LCHlch(27.15, 75.87, 300.62°)
OKLaboklab(38.78% -0.0027 -0.1891)
OKLCHoklch(38.78% 0.189 269.2)
XYZxyz(8.6164, 5.1454, 37.0908)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212FA7 #A79921
analogous
#2172A7 #212FA7 #5621A7
triadic
#212FA7 #A7212F #2FA721
tetradic
#212FA7 #A72172 #A79921 #21A756
square
#212FA7 #A72172 #A79921 #21A756
split-complementary
#212FA7 #A75621 #72A721
monochromatic
#0D1241 #172174 #212FA7 #2F41D6 #626FE0

Accessibility & contrast

On white

10.35
#212FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#212FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212FA7
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212FA7#FFFFFF#000000##FFFFFF
##212FA71.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212fa7;
/* rgb */ color: rgb(33, 47, 167);
/* oklch */ color: oklch(38.8% 0.189 269.2);
Tailwind
colors: {
  custom: {
    50: '#7568c2',
    500: '#212fa7',
    950: '#000000',
  },
}
SCSS
$custom: #212fa7;
$custom-light: #7568c2;
$custom-dark: #000000;
JSON
{
  "hex": "#212fa7",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 233.731,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3878,
    "c": 0.18915,
    "h": 269.2
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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