#212864#212864

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

Color values

HEX#212864
RGBrgb(33, 40, 100)
HSLhsl(234, 50%, 26%)
HSVhsv(234, 67%, 39%)
CMYKcmyk(67%, 60%, 0%, 60.8%)
CIE-LABlab(19.06, 18.12, -36.48)
CIE-LCHlch(19.06, 40.73, 296.41°)
OKLaboklab(30.93% 0.0065 -0.1048)
OKLCHoklch(30.93% 0.105 273.5)
XYZxyz(3.6855, 2.7607, 12.3928)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212864 #645D21
analogous
#214964 #212864 #3B2164
triadic
#212864 #642128 #286421
tetradic
#212864 #642149 #645D21 #21643B
square
#212864 #642149 #645D21 #21643B
split-complementary
#212864 #643B21 #496421
monochromatic
#080917 #121636 #212864 #303A92 #404DC0

Accessibility & contrast

On white

13.53
#212864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#212864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212864
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212864#FFFFFF#000000##FFFFFF
##2128641.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#003641
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212864;
/* rgb */ color: rgb(33, 40, 100);
/* oklch */ color: oklch(30.9% 0.105 273.5);
Tailwind
colors: {
  custom: {
    50: '#656191',
    500: '#212864',
    950: '#000000',
  },
}
SCSS
$custom: #212864;
$custom-light: #656191;
$custom-dark: #000000;
JSON
{
  "hex": "#212864",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 100
  },
  "hsl": {
    "h": 233.731,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30932,
    "c": 0.10503,
    "h": 273.5
  },
  "luminance": 0.02761
}

Semantic roles & 50–950 ramp

primary
#212864
secondary
#989049
accent
#CB4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050D
muted
#7A797D

Preview Lab

Preview with #212864

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

Preview Lab → · Contrast checker → · Palette generator →

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