#223157#223157

#223157 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.1% C 0.071 H 266.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#223157
RGBrgb(34, 49, 87)
HSLhsl(223, 44%, 24%)
HSVhsv(223, 61%, 34%)
CMYKcmyk(60.9%, 43.7%, 0%, 65.9%)
CIE-LABlab(20.92, 6.85, -24.90)
CIE-LCHlch(20.92, 25.83, 285.37°)
OKLaboklab(32.06% -0.0046 -0.0707)
OKLCHoklch(32.06% 0.071 266.3)
XYZxyz(3.4777, 3.2246, 9.4541)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223157 #574822
analogous
#224B57 #223157 #2D2257
triadic
#223157 #572231 #315722
tetradic
#223157 #57224B #574822 #22572D
square
#223157 #57224B #574822 #22572D
split-complementary
#223157 #572D22 #4B5722
monochromatic
#090C16 #11182B #223157 #334A83 #4463AF

Accessibility & contrast

On white

12.77
#223157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#223157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223157
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223157#FFFFFF#000000##FFFFFF
##2231571.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213558
Deuteranopia (green-blind)
#1A3056
Tritanopia (blue-blind)
#02393F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #223157;
/* rgb */ color: rgb(34, 49, 87);
/* oklch */ color: oklch(32.1% 0.071 266.3);
Tailwind
colors: {
  custom: {
    50: '#626886',
    500: '#223157',
    950: '#000000',
  },
}
SCSS
$custom: #223157;
$custom-light: #626886;
$custom-dark: #000000;
JSON
{
  "hex": "#223157",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 223.019,
    "s": 43.802,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32064,
    "c": 0.07083,
    "h": 266.3
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#223157
secondary
#8B794A
accent
#B054D4
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#05060B
muted
#7A7A7C

Preview Lab

Preview with #223157

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

Preview Lab → · Contrast checker → · Palette generator →

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