#212366#212366

#212366 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.1% C 0.115 H 275.7°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#212366
RGBrgb(33, 35, 102)
HSLhsl(238, 51%, 26%)
HSVhsv(238, 68%, 40%)
CMYKcmyk(67.6%, 65.7%, 0%, 60%)
CIE-LABlab(17.85, 22.42, -39.76)
CIE-LCHlch(17.85, 45.64, 299.42°)
OKLaboklab(30.09% 0.0114 -0.1145)
OKLCHoklch(30.09% 0.115 275.7)
XYZxyz(3.6257, 2.4844, 12.8563)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212366 #666421
analogous
#214666 #212366 #422166
triadic
#212366 #662123 #236621
tetradic
#212366 #662146 #666421 #216642
square
#212366 #662146 #666421 #216642
split-complementary
#212366 #664221 #466621
monochromatic
#070817 #121338 #212366 #303394 #4044C1

Accessibility & contrast

On white

14.03
#212366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#212366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212366
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212366#FFFFFF#000000##FFFFFF
##2123661.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#003441
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #212366;
/* rgb */ color: rgb(33, 35, 102);
/* oklch */ color: oklch(30.1% 0.115 275.7);
Tailwind
colors: {
  custom: {
    50: '#665e92',
    500: '#212366',
    950: '#000000',
  },
}
SCSS
$custom: #212366;
$custom-light: #665e92;
$custom-dark: #000000;
JSON
{
  "hex": "#212366",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 102
  },
  "hsl": {
    "h": 238.261,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30089,
    "c": 0.1151,
    "h": 275.7
  },
  "luminance": 0.02485
}

Semantic roles & 50–950 ramp

primary
#212366
secondary
#9A9849
accent
#D64DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212366

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

Preview Lab → · Contrast checker → · Palette generator →

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