#223781#223781

#223781 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.7% C 0.128 H 267.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#223781
RGBrgb(34, 55, 129)
HSLhsl(227, 58%, 32%)
HSVhsv(227, 74%, 51%)
CMYKcmyk(73.6%, 57.4%, 0%, 49.4%)
CIE-LABlab(25.73, 19.06, -44.23)
CIE-LCHlch(25.73, 48.16, 293.31°)
OKLaboklab(36.69% -0.0052 -0.1274)
OKLCHoklch(36.69% 0.128 267.6)
XYZxyz(5.9870, 4.6568, 21.3480)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223781 #816C22
analogous
#226781 #223781 #3D2281
triadic
#223781 #812237 #378122
tetradic
#223781 #812267 #816C22 #22813D
square
#223781 #812267 #816C22 #22813D
split-complementary
#223781 #813D22 #678122
monochromatic
#080E20 #152251 #223781 #2F4CB1 #4D6AD0

Accessibility & contrast

On white

10.87
#223781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#223781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223781
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223781#FFFFFF#000000##FFFFFF
##2237811.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #223781;
/* rgb */ color: rgb(34, 55, 129);
/* oklch */ color: oklch(36.7% 0.128 267.6);
Tailwind
colors: {
  custom: {
    50: '#6b6da6',
    500: '#223781',
    950: '#000000',
  },
}
SCSS
$custom: #223781;
$custom-light: #6b6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#223781",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 129
  },
  "hsl": {
    "h": 226.737,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36687,
    "c": 0.12752,
    "h": 267.6
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#223781
secondary
#B39C4B
accent
#BF46E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #223781

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

Preview Lab → · Contrast checker → · Palette generator →

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