#212640#212640

#212640 is a dark, muted blue. Relative luminance 0.021; OKLCH L 27.7% C 0.049 H 274.5°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#212640
RGBrgb(33, 38, 64)
HSLhsl(230, 32%, 19%)
HSVhsv(230, 48%, 25%)
CMYKcmyk(48.4%, 40.6%, 0%, 74.9%)
CIE-LABlab(15.90, 5.97, -17.25)
CIE-LCHlch(15.90, 18.25, 289.09°)
OKLaboklab(27.72% 0.0038 -0.0484)
OKLCHoklch(27.72% 0.049 274.5)
XYZxyz(2.2454, 2.0796, 5.1326)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212640 #403B21
analogous
#213640 #212640 #2C2140
triadic
#212640 #402126 #264021
tetradic
#212640 #402136 #403B21 #21402C
square
#212640 #402136 #403B21 #21402C
split-complementary
#212640 #402C21 #364021
monochromatic
#0A0C14 #0C0E18 #212640 #363E68 #4B5691

Accessibility & contrast

On white

14.83
#212640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#212640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212640
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212640#FFFFFF#000000##FFFFFF
##2126401.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2941
Deuteranopia (green-blind)
#1A263F
Tritanopia (blue-blind)
#172B30
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #212640;
/* rgb */ color: rgb(33, 38, 64);
/* oklch */ color: oklch(27.7% 0.049 274.5);
Tailwind
colors: {
  custom: {
    50: '#5e6075',
    500: '#212640',
    950: '#000000',
  },
}
SCSS
$custom: #212640;
$custom-light: #5e6075;
$custom-dark: #000000;
JSON
{
  "hex": "#212640",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 64
  },
  "hsl": {
    "h": 230.323,
    "s": 31.959,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27719,
    "c": 0.0486,
    "h": 274.5
  },
  "luminance": 0.0208
}

Semantic roles & 50–950 ramp

primary
#212640
secondary
#746D49
accent
#B760C8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040408
muted
#79797B

Preview Lab

Preview with #212640

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

Preview Lab → · Contrast checker → · Palette generator →

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