#223791#223791

#223791 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.150 H 268.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#223791
RGBrgb(34, 55, 145)
HSLhsl(229, 62%, 35%)
HSVhsv(229, 77%, 57%)
CMYKcmyk(76.6%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.06, 25.31, -52.01)
CIE-LCHlch(27.06, 57.84, 295.94°)
OKLaboklab(38.1% -0.0048 -0.1503)
OKLCHoklch(38.1% 0.15 268.2)
XYZxyz(7.1349, 5.1160, 27.3940)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223791 #917C22
analogous
#226E91 #223791 #452291
triadic
#223791 #912237 #379122
tetradic
#223791 #91226E #917C22 #229145
square
#223791 #91226E #917C22 #229145
split-complementary
#223791 #914522 #6E9122
monochromatic
#0B112E #16245F #223791 #2E4AC3 #566ED7

Accessibility & contrast

On white

10.38
#223791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#223791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223791
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223791#FFFFFF#000000##FFFFFF
##2237911.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #223791;
/* rgb */ color: rgb(34, 55, 145);
/* oklch */ color: oklch(38.1% 0.150 268.2);
Tailwind
colors: {
  custom: {
    50: '#6f6db2',
    500: '#223791',
    950: '#000000',
  },
}
SCSS
$custom: #223791;
$custom-light: #6f6db2;
$custom-dark: #000000;
JSON
{
  "hex": "#223791",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 228.649,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38096,
    "c": 0.15034,
    "h": 268.2
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#223791
secondary
#BBA853
accent
#C643E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #223791

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

Preview Lab → · Contrast checker → · Palette generator →

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