#222F7C#222F7C

#222F7C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.131 H 270.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#222F7C
RGBrgb(34, 47, 124)
HSLhsl(231, 57%, 31%)
HSVhsv(231, 73%, 49%)
CMYKcmyk(72.6%, 62.1%, 0%, 51.4%)
CIE-LABlab(23.09, 22.67, -45.38)
CIE-LCHlch(23.09, 50.72, 296.55°)
OKLaboklab(34.59% 0.0014 -0.1309)
OKLCHoklch(34.59% 0.131 270.6)
XYZxyz(5.3131, 3.8278, 19.5237)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F7C #7C6F22
analogous
#225C7C #222F7C #42227C
triadic
#222F7C #7C222F #2F7C22
tetradic
#222F7C #7C225C #7C6F22 #227C42
square
#222F7C #7C225C #7C6F22 #227C42
split-complementary
#222F7C #7C4222 #5C7C22
monochromatic
#080B1C #151D4C #222F7C #2F41AC #4B5ECE

Accessibility & contrast

On white

11.89
#222F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#222F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F7C
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F7C#FFFFFF#000000##FFFFFF
##222F7C1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222f7c;
/* rgb */ color: rgb(34, 47, 124);
/* oklch */ color: oklch(34.6% 0.131 270.6);
Tailwind
colors: {
  custom: {
    50: '#6a67a3',
    500: '#222f7c',
    950: '#000000',
  },
}
SCSS
$custom: #222f7c;
$custom-light: #6a67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#222f7c",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 231.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34586,
    "c": 0.13089,
    "h": 270.6
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#222F7C
secondary
#AFA04B
accent
#CA48E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222F7C

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

Preview Lab → · Contrast checker → · Palette generator →

#222F7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva