#213794#213794

#213794 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.155 H 267.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#213794
RGBrgb(33, 55, 148)
HSLhsl(229, 64%, 35%)
HSVhsv(229, 78%, 58%)
CMYKcmyk(77.7%, 62.8%, 0%, 42%)
CIE-LABlab(27.28, 26.35, -53.51)
CIE-LCHlch(27.28, 59.64, 296.22°)
OKLaboklab(38.32% -0.0057 -0.1547)
OKLCHoklch(38.32% 0.155 267.9)
XYZxyz(7.3368, 5.1930, 28.6269)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213794 #947E21
analogous
#217094 #213794 #452194
triadic
#213794 #942137 #379421
tetradic
#213794 #942170 #947E21 #219445
square
#213794 #942170 #947E21 #219445
split-complementary
#213794 #944521 #709421
monochromatic
#0B1230 #162462 #213794 #2C4AC6 #566FD9

Accessibility & contrast

On white

10.30
#213794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#213794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213794
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213794#FFFFFF#000000##FFFFFF
##2137941.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #213794;
/* rgb */ color: rgb(33, 55, 148);
/* oklch */ color: oklch(38.3% 0.155 267.9);
Tailwind
colors: {
  custom: {
    50: '#6f6db4',
    500: '#213794',
    950: '#000000',
  },
}
SCSS
$custom: #213794;
$custom-light: #6f6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#213794",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 228.522,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38324,
    "c": 0.15478,
    "h": 267.9
  },
  "luminance": 0.05194
}

Semantic roles & 50–950 ramp

primary
#213794
secondary
#BDA954
accent
#C741E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213794

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

Preview Lab → · Contrast checker → · Palette generator →

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