#212175#212175

#212175 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.139 H 274.8°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#212175
RGBrgb(33, 33, 117)
HSLhsl(240, 56%, 29%)
HSVhsv(240, 72%, 46%)
CMYKcmyk(71.8%, 71.8%, 0%, 54.1%)
CIE-LABlab(18.78, 29.36, -47.97)
CIE-LCHlch(18.78, 56.25, 301.47°)
OKLaboklab(31.21% 0.0116 -0.1386)
OKLCHoklch(31.21% 0.139 274.8)
XYZxyz(4.3809, 2.6950, 17.1155)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212175 #757521
analogous
#214B75 #212175 #4B2175
triadic
#212175 #752121 #217521
tetradic
#212175 #75214B #757521 #21754B
square
#212175 #75214B #757521 #21754B
split-complementary
#212175 #754B21 #4B7521
monochromatic
#070718 #141445 #212175 #2E2EA5 #4646CB

Accessibility & contrast

On white

13.65
#212175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#212175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212175
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212175#FFFFFF#000000##FFFFFF
##2121751.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.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: #212175;
/* rgb */ color: rgb(33, 33, 117);
/* oklch */ color: oklch(31.2% 0.139 274.8);
Tailwind
colors: {
  custom: {
    50: '#695d9e',
    500: '#212175',
    950: '#000000',
  },
}
SCSS
$custom: #212175;
$custom-light: #695d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#212175",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 240,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31208,
    "c": 0.13909,
    "h": 274.8
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#212175
secondary
#A8A84A
accent
#DF49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212175

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

Preview Lab → · Contrast checker → · Palette generator →

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