#212FA5#212FA5

#212FA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.187 H 269.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#212FA5
RGBrgb(33, 47, 165)
HSLhsl(234, 67%, 39%)
HSVhsv(234, 80%, 65%)
CMYKcmyk(80%, 71.5%, 0%, 35.3%)
CIE-LABlab(26.94, 37.92, -64.42)
CIE-LCHlch(26.94, 74.76, 300.48°)
OKLaboklab(38.57% -0.0024 -0.1866)
OKLCHoklch(38.57% 0.187 269.3)
XYZxyz(8.4329, 5.0720, 36.1246)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212FA5 #A59721
analogous
#2171A5 #212FA5 #5521A5
triadic
#212FA5 #A5212F #2FA521
tetradic
#212FA5 #A52171 #A59721 #21A555
square
#212FA5 #A52171 #A59721 #21A555
split-complementary
#212FA5 #A55521 #71A521
monochromatic
#0D123F #172072 #212FA5 #2E40D5 #616EDF

Accessibility & contrast

On white

10.42
#212FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#212FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212FA5
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212FA5#FFFFFF#000000##FFFFFF
##212FA51.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #212fa5;
/* rgb */ color: rgb(33, 47, 165);
/* oklch */ color: oklch(38.6% 0.187 269.3);
Tailwind
colors: {
  custom: {
    50: '#7468c1',
    500: '#212fa5',
    950: '#000000',
  },
}
SCSS
$custom: #212fa5;
$custom-light: #7468c1;
$custom-dark: #000000;
JSON
{
  "hex": "#212fa5",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 233.636,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3857,
    "c": 0.18663,
    "h": 269.3
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#212FA5
secondary
#C4B95E
accent
#D73EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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