#222783#222783

#222783 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.151 H 272.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#222783
RGBrgb(34, 39, 131)
HSLhsl(237, 59%, 32%)
HSVhsv(237, 74%, 51%)
CMYKcmyk(74%, 70.2%, 0%, 48.6%)
CIE-LABlab(21.69, 30.72, -52.10)
CIE-LCHlch(21.69, 60.48, 300.53°)
OKLaboklab(33.75% 0.0069 -0.1506)
OKLCHoklch(33.75% 0.151 272.6)
XYZxyz(5.4806, 3.4293, 21.8414)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222783 #837E22
analogous
#225883 #222783 #4D2283
triadic
#222783 #832227 #278322
tetradic
#222783 #832258 #837E22 #22834D
square
#222783 #832258 #837E22 #22834D
split-complementary
#222783 #834D22 #588322
monochromatic
#090A22 #151952 #222783 #2F35B4 #4E55D1

Accessibility & contrast

On white

12.46
#222783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#222783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222783
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222783#FFFFFF#000000##FFFFFF
##2227831.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222783;
/* rgb */ color: rgb(34, 39, 131);
/* oklch */ color: oklch(33.8% 0.151 272.6);
Tailwind
colors: {
  custom: {
    50: '#6d61a8',
    500: '#222783',
    950: '#000000',
  },
}
SCSS
$custom: #222783;
$custom-light: #6d61a8;
$custom-dark: #000000;
JSON
{
  "hex": "#222783",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 236.907,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.15079,
    "h": 272.6
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#222783
secondary
#B4AF4C
accent
#DA46E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222783

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

Preview Lab → · Contrast checker → · Palette generator →

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