#212F68#212F68

#212F68 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.101 H 269.7°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#212F68
RGBrgb(33, 47, 104)
HSLhsl(228, 52%, 27%)
HSVhsv(228, 68%, 41%)
CMYKcmyk(68.3%, 54.8%, 0%, 59.2%)
CIE-LABlab(21.41, 14.68, -35.28)
CIE-LCHlch(21.41, 38.21, 292.59°)
OKLaboklab(32.8% -0.0006 -0.1012)
OKLCHoklch(32.8% 0.101 269.7)
XYZxyz(4.1416, 3.3555, 13.5234)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F68 #685A21
analogous
#215368 #212F68 #372168
triadic
#212F68 #68212F #2F6821
tetradic
#212F68 #682153 #685A21 #216837
square
#212F68 #682153 #685A21 #216837
split-complementary
#212F68 #683721 #536821
monochromatic
#070A17 #121A3A #212F68 #304496 #415AC3

Accessibility & contrast

On white

12.57
#212F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F68
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F68#FFFFFF#000000##FFFFFF
##212F681.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D376A
Deuteranopia (green-blind)
#003067
Tritanopia (blue-blind)
#003C46
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212f68;
/* rgb */ color: rgb(33, 47, 104);
/* oklch */ color: oklch(32.8% 0.101 269.7);
Tailwind
colors: {
  custom: {
    50: '#656794',
    500: '#212f68',
    950: '#000000',
  },
}
SCSS
$custom: #212f68;
$custom-light: #656794;
$custom-dark: #000000;
JSON
{
  "hex": "#212f68",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 104
  },
  "hsl": {
    "h": 228.169,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32801,
    "c": 0.10121,
    "h": 269.7
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#212F68
secondary
#9C8C49
accent
#BF4DDB
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #212F68

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

Preview Lab → · Contrast checker → · Palette generator →

#212F68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva