#212A7F#212A7F

#212A7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.142 H 271.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#212A7F
RGBrgb(33, 42, 127)
HSLhsl(234, 59%, 31%)
HSVhsv(234, 74%, 50%)
CMYKcmyk(74%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.98, 27.11, -49.09)
CIE-LCHlch(21.98, 56.08, 298.91°)
OKLaboklab(33.84% 0.0041 -0.1418)
OKLCHoklch(33.84% 0.142 271.6)
XYZxyz(5.2846, 3.5110, 20.4737)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A7F #7F7621
analogous
#21597F #212A7F #47217F
triadic
#212A7F #7F212A #2A7F21
tetradic
#212A7F #7F2159 #7F7621 #217F47
square
#212A7F #7F2159 #7F7621 #217F47
split-complementary
#212A7F #7F4721 #597F21
monochromatic
#080A1E #141A4E #212A7F #2E3AB0 #4A57D0

Accessibility & contrast

On white

12.34
#212A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A7F
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A7F#FFFFFF#000000##FFFFFF
##212A7F1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212a7f;
/* rgb */ color: rgb(33, 42, 127);
/* oklch */ color: oklch(33.8% 0.142 271.6);
Tailwind
colors: {
  custom: {
    50: '#6b63a5',
    500: '#212a7f',
    950: '#000000',
  },
}
SCSS
$custom: #212a7f;
$custom-light: #6b63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#212a7f",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 234.255,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33836,
    "c": 0.1419,
    "h": 271.6
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#212A7F
secondary
#B2A84A
accent
#D346E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #212A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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