#212865#212865

#212865 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.0% C 0.107 H 273.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#212865
RGBrgb(33, 40, 101)
HSLhsl(234, 51%, 26%)
HSVhsv(234, 67%, 40%)
CMYKcmyk(67.3%, 60.4%, 0%, 60.4%)
CIE-LABlab(19.14, 18.51, -37.00)
CIE-LCHlch(19.14, 41.37, 296.57°)
OKLaboklab(31.02% 0.0065 -0.1064)
OKLCHoklch(31.02% 0.107 273.5)
XYZxyz(3.7342, 2.7802, 12.6492)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212865 #655E21
analogous
#214A65 #212865 #3C2165
triadic
#212865 #652128 #286521
tetradic
#212865 #65214A #655E21 #21653C
square
#212865 #65214A #655E21 #21653C
split-complementary
#212865 #653C21 #4A6521
monochromatic
#080917 #121637 #212865 #303A93 #404DC1

Accessibility & contrast

On white

13.49
#212865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#212865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212865
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212865#FFFFFF#000000##FFFFFF
##2128651.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#003742
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212865;
/* rgb */ color: rgb(33, 40, 101);
/* oklch */ color: oklch(31.0% 0.107 273.5);
Tailwind
colors: {
  custom: {
    50: '#656191',
    500: '#212865',
    950: '#000000',
  },
}
SCSS
$custom: #212865;
$custom-light: #656191;
$custom-dark: #000000;
JSON
{
  "hex": "#212865",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 101
  },
  "hsl": {
    "h": 233.824,
    "s": 50.746,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31019,
    "c": 0.10657,
    "h": 273.5
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#212865
secondary
#999149
accent
#CC4EDA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212865

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

Preview Lab → · Contrast checker → · Palette generator →

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