#212274#212274

#212274 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.136 H 274.6°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#212274
RGBrgb(33, 34, 116)
HSLhsl(239, 56%, 29%)
HSVhsv(239, 72%, 45%)
CMYKcmyk(71.6%, 70.7%, 0%, 54.5%)
CIE-LABlab(18.92, 28.34, -47.10)
CIE-LCHlch(18.92, 54.97, 301.04°)
OKLaboklab(31.28% 0.011 -0.136)
OKLCHoklch(31.28% 0.136 274.6)
XYZxyz(4.3506, 2.7279, 16.8169)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212274 #747321
analogous
#214C74 #212274 #4A2174
triadic
#212274 #742122 #227421
tetradic
#212274 #74214C #747321 #21744A
square
#212274 #74214C #747321 #21744A
split-complementary
#212274 #744A21 #4C7421
monochromatic
#070718 #131444 #212274 #2F30A4 #4547CA

Accessibility & contrast

On white

13.59
#212274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212274
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212274#FFFFFF#000000##FFFFFF
##2122741.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212274;
/* rgb */ color: rgb(33, 34, 116);
/* oklch */ color: oklch(31.3% 0.136 274.6);
Tailwind
colors: {
  custom: {
    50: '#695d9d',
    500: '#212274',
    950: '#000000',
  },
}
SCSS
$custom: #212274;
$custom-light: #695d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#212274",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 239.277,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3128,
    "c": 0.13649,
    "h": 274.6
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#212274
secondary
#A7A649
accent
#DD49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212274

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

Preview Lab → · Contrast checker → · Palette generator →

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