#212275#212275

#212275 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.138 H 274.5°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#212275
RGBrgb(33, 34, 117)
HSLhsl(239, 56%, 29%)
HSVhsv(239, 72%, 46%)
CMYKcmyk(71.8%, 70.9%, 0%, 54.1%)
CIE-LABlab(19.02, 28.71, -47.58)
CIE-LCHlch(19.02, 55.57, 301.11°)
OKLaboklab(31.38% 0.0108 -0.1374)
OKLCHoklch(31.38% 0.138 274.5)
XYZxyz(4.4090, 2.7513, 17.1249)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212275 #757421
analogous
#214C75 #212275 #4A2175
triadic
#212275 #752122 #227521
tetradic
#212275 #75214C #757421 #21754A
square
#212275 #75214C #757421 #21754A
split-complementary
#212275 #754A21 #4C7521
monochromatic
#070718 #141445 #212275 #2E30A5 #4647CB

Accessibility & contrast

On white

13.54
#212275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212275
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212275#FFFFFF#000000##FFFFFF
##2122751.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212275;
/* rgb */ color: rgb(33, 34, 117);
/* oklch */ color: oklch(31.4% 0.138 274.5);
Tailwind
colors: {
  custom: {
    50: '#695d9e',
    500: '#212275',
    950: '#000000',
  },
}
SCSS
$custom: #212275;
$custom-light: #695d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#212275",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 117
  },
  "hsl": {
    "h": 239.286,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31382,
    "c": 0.13788,
    "h": 274.5
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#212275
secondary
#A8A74A
accent
#DE49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212275

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

Preview Lab → · Contrast checker → · Palette generator →

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