#212762#212762

#212762 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.103 H 274.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#212762
RGBrgb(33, 39, 98)
HSLhsl(234, 50%, 26%)
HSVhsv(234, 66%, 38%)
CMYKcmyk(66.3%, 60.2%, 0%, 61.6%)
CIE-LABlab(18.61, 18.06, -35.89)
CIE-LCHlch(18.61, 40.18, 296.71°)
OKLaboklab(30.55% 0.0075 -0.1031)
OKLCHoklch(30.55% 0.103 274.2)
XYZxyz(3.5566, 2.6559, 11.8781)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212762 #625C21
analogous
#214762 #212762 #3B2162
triadic
#212762 #622127 #276221
tetradic
#212762 #622147 #625C21 #21623B
square
#212762 #622147 #625C21 #21623B
split-complementary
#212762 #623B21 #476221
monochromatic
#080917 #121534 #212762 #303990 #404BBE

Accessibility & contrast

On white

13.71
#212762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#212762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212762
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212762#FFFFFF#000000##FFFFFF
##2127621.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#003540
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212762;
/* rgb */ color: rgb(33, 39, 98);
/* oklch */ color: oklch(30.5% 0.103 274.2);
Tailwind
colors: {
  custom: {
    50: '#64618f',
    500: '#212762',
    950: '#000000',
  },
}
SCSS
$custom: #212762;
$custom-light: #64618f;
$custom-dark: #000000;
JSON
{
  "hex": "#212762",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 98
  },
  "hsl": {
    "h": 234.462,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30545,
    "c": 0.10339,
    "h": 274.2
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#212762
secondary
#968F49
accent
#CC4FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #212762

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

Preview Lab → · Contrast checker → · Palette generator →

#212762 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva