#223796#223796

#223796 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.157 H 268.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#223796
RGBrgb(34, 55, 150)
HSLhsl(229, 63%, 36%)
HSVhsv(229, 77%, 59%)
CMYKcmyk(77.3%, 63.3%, 0%, 41.2%)
CIE-LABlab(27.50, 27.23, -54.37)
CIE-LCHlch(27.50, 60.81, 296.61°)
OKLaboklab(38.56% -0.0048 -0.1572)
OKLCHoklch(38.56% 0.157 268.2)
XYZxyz(7.5290, 5.2736, 29.4694)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223796 #968122
analogous
#227196 #223796 #472296
triadic
#223796 #962237 #379622
tetradic
#223796 #962271 #968122 #229647
square
#223796 #962271 #968122 #229647
split-complementary
#223796 #964722 #719622
monochromatic
#0B1232 #172564 #223796 #2D49C8 #5970D9

Accessibility & contrast

On white

10.22
#223796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#223796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223796
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223796#FFFFFF#000000##FFFFFF
##2237961.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #223796;
/* rgb */ color: rgb(34, 55, 150);
/* oklch */ color: oklch(38.6% 0.157 268.2);
Tailwind
colors: {
  custom: {
    50: '#706db6',
    500: '#223796',
    950: '#000000',
  },
}
SCSS
$custom: #223796;
$custom-light: #706db6;
$custom-dark: #000000;
JSON
{
  "hex": "#223796",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 229.138,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38556,
    "c": 0.15724,
    "h": 268.2
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#223796
secondary
#BEAB56
accent
#C842E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223796

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

Preview Lab → · Contrast checker → · Palette generator →

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