#222283#222283

#222283 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.157 H 273.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#222283
RGBrgb(34, 34, 131)
HSLhsl(240, 59%, 32%)
HSVhsv(240, 74%, 51%)
CMYKcmyk(74%, 74%, 0%, 48.6%)
CIE-LABlab(20.53, 33.90, -54.01)
CIE-LCHlch(20.53, 63.77, 302.12°)
OKLaboklab(32.92% 0.01 -0.1562)
OKLCHoklch(32.92% 0.157 273.7)
XYZxyz(5.3271, 3.1223, 21.7903)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222283 #838322
analogous
#225383 #222283 #532283
triadic
#222283 #832222 #228322
tetradic
#222283 #832253 #838322 #228353
square
#222283 #832253 #838322 #228353
split-complementary
#222283 #835322 #538322
monochromatic
#090922 #151552 #222283 #2F2FB4 #4E4ED1

Accessibility & contrast

On white

12.93
#222283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#222283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222283
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222283#FFFFFF#000000##FFFFFF
##2222831.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222283;
/* rgb */ color: rgb(34, 34, 131);
/* oklch */ color: oklch(32.9% 0.157 273.7);
Tailwind
colors: {
  custom: {
    50: '#6d5ea8',
    500: '#222283',
    950: '#000000',
  },
}
SCSS
$custom: #222283;
$custom-light: #6d5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#222283",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 240,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32919,
    "c": 0.15652,
    "h": 273.7
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#222283
secondary
#B4B44C
accent
#E246E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222283

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

Preview Lab → · Contrast checker → · Palette generator →

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