#222867#222867

#222867 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.3% C 0.109 H 274.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#222867
RGBrgb(34, 40, 103)
HSLhsl(235, 50%, 27%)
HSVhsv(235, 67%, 40%)
CMYKcmyk(67%, 61.2%, 0%, 59.6%)
CIE-LABlab(19.38, 19.46, -37.92)
CIE-LCHlch(19.38, 42.63, 297.17°)
OKLaboklab(31.27% 0.0078 -0.109)
OKLCHoklch(31.27% 0.109 274.1)
XYZxyz(3.8659, 2.8366, 13.1731)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222867 #676122
analogous
#224B67 #222867 #3F2267
triadic
#222867 #672228 #286722
tetradic
#222867 #67224B #676122 #22673F
square
#222867 #67224B #676122 #22673F
split-complementary
#222867 #673F22 #4B6722
monochromatic
#080917 #131639 #222867 #313A95 #434EC1

Accessibility & contrast

On white

13.40
#222867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#222867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222867
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222867#FFFFFF#000000##FFFFFF
##2228671.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#003743
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222867;
/* rgb */ color: rgb(34, 40, 103);
/* oklch */ color: oklch(31.3% 0.109 274.1);
Tailwind
colors: {
  custom: {
    50: '#666193',
    500: '#222867',
    950: '#000000',
  },
}
SCSS
$custom: #222867;
$custom-light: #666193;
$custom-dark: #000000;
JSON
{
  "hex": "#222867",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 103
  },
  "hsl": {
    "h": 234.783,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31266,
    "c": 0.10933,
    "h": 274.1
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#222867
secondary
#9B944A
accent
#CE4EDA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #222867

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

Preview Lab → · Contrast checker → · Palette generator →

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