#222370#222370

#222370 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.129 H 275.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#222370
RGBrgb(34, 35, 112)
HSLhsl(239, 53%, 29%)
HSVhsv(239, 70%, 44%)
CMYKcmyk(69.6%, 68.8%, 0%, 56.1%)
CIE-LABlab(18.85, 26.34, -44.63)
CIE-LCHlch(18.85, 51.82, 300.54°)
OKLaboklab(31.13% 0.012 -0.1288)
OKLCHoklch(31.13% 0.129 275.3)
XYZxyz(4.1844, 2.7116, 15.6290)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222370 #706F22
analogous
#224A70 #222370 #482270
triadic
#222370 #702223 #237022
tetradic
#222370 #70224A #706F22 #227048
square
#222370 #70224A #706F22 #227048
split-complementary
#222370 #704822 #4A7022
monochromatic
#070717 #141441 #222370 #30329F #4647C7

Accessibility & contrast

On white

13.62
#222370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222370
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222370#FFFFFF#000000##FFFFFF
##2223701.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #222370;
/* rgb */ color: rgb(34, 35, 112);
/* oklch */ color: oklch(31.1% 0.129 275.3);
Tailwind
colors: {
  custom: {
    50: '#685e9a',
    500: '#222370',
    950: '#000000',
  },
}
SCSS
$custom: #222370;
$custom-light: #685e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#222370",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 112
  },
  "hsl": {
    "h": 239.231,
    "s": 53.425,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31128,
    "c": 0.12934,
    "h": 275.3
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#222370
secondary
#A3A24A
accent
#DB4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222370

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

Preview Lab → · Contrast checker → · Palette generator →

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