#211F7A#211F7A

#211F7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.148 H 274.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#211F7A
RGBrgb(33, 31, 122)
HSLhsl(241, 59%, 30%)
HSVhsv(241, 75%, 48%)
CMYKcmyk(73%, 74.6%, 0%, 52.2%)
CIE-LABlab(18.83, 32.44, -51.09)
CIE-LCHlch(18.83, 60.52, 302.42°)
OKLaboklab(31.41% 0.0121 -0.1477)
OKLCHoklch(31.41% 0.148 274.7)
XYZxyz(4.6289, 2.7080, 18.6873)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211F7A #787A1F
analogous
#1F4A7A #211F7A #4F1F7A
triadic
#211F7A #7A211F #1F7A21
tetradic
#211F7A #7A1F4A #787A1F #1F7A4F
square
#211F7A #7A1F4A #787A1F #1F7A4F
split-complementary
#211F7A #7A4F1F #4A7A1F
monochromatic
#070618 #141349 #211F7A #2E2BAB #4744CF

Accessibility & contrast

On white

13.62
#211F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#211F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211F7A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211F7A#FFFFFF#000000##FFFFFF
##211F7A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #211f7a;
/* rgb */ color: rgb(33, 31, 122);
/* oklch */ color: oklch(31.4% 0.148 274.7);
Tailwind
colors: {
  custom: {
    50: '#6b5ca1',
    500: '#211f7a',
    950: '#000000',
  },
}
SCSS
$custom: #211f7a;
$custom-light: #6b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#211f7a",
  "rgb": {
    "r": 33,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 241.319,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.31405,
    "c": 0.14818,
    "h": 274.7
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#211F7A
secondary
#ABAD47
accent
#E345DF
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #211F7A

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

Preview Lab → · Contrast checker → · Palette generator →

#211F7A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva