#212875#212875

#212875 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.130 H 272.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#212875
RGBrgb(33, 40, 117)
HSLhsl(235, 56%, 29%)
HSVhsv(235, 72%, 46%)
CMYKcmyk(71.8%, 65.8%, 0%, 54.1%)
CIE-LABlab(20.54, 24.67, -45.09)
CIE-LCHlch(20.54, 51.40, 298.68°)
OKLaboklab(32.49% 0.0062 -0.1301)
OKLCHoklch(32.49% 0.13 272.7)
XYZxyz(4.5958, 3.1248, 17.1871)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212875 #756E21
analogous
#215275 #212875 #442175
triadic
#212875 #752128 #287521
tetradic
#212875 #752152 #756E21 #217544
square
#212875 #752152 #756E21 #217544
split-complementary
#212875 #754421 #527521
monochromatic
#070818 #141845 #212875 #2E38A5 #4651CB

Accessibility & contrast

On white

12.92
#212875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212875
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212875#FFFFFF#000000##FFFFFF
##2128751.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212875;
/* rgb */ color: rgb(33, 40, 117);
/* oklch */ color: oklch(32.5% 0.130 272.7);
Tailwind
colors: {
  custom: {
    50: '#69629d',
    500: '#212875',
    950: '#000000',
  },
}
SCSS
$custom: #212875;
$custom-light: #69629d;
$custom-dark: #000000;
JSON
{
  "hex": "#212875",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 235,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32488,
    "c": 0.13029,
    "h": 272.7
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#212875
secondary
#A8A04A
accent
#D349DF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212875

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

Preview Lab → · Contrast checker → · Palette generator →

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