#223987#223987

#223987 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.134 H 267.2°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#223987
RGBrgb(34, 57, 135)
HSLhsl(226, 60%, 33%)
HSVhsv(226, 75%, 53%)
CMYKcmyk(74.8%, 57.8%, 0%, 47.1%)
CIE-LABlab(26.78, 20.03, -46.29)
CIE-LCHlch(26.78, 50.43, 293.40°)
OKLaboklab(37.62% -0.0066 -0.1334)
OKLCHoklch(37.62% 0.134 267.2)
XYZxyz(6.4945, 5.0149, 23.5427)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223987 #877022
analogous
#226B87 #223987 #3E2287
triadic
#223987 #872239 #398722
tetradic
#223987 #87226B #877022 #22873E
square
#223987 #87226B #877022 #22873E
split-complementary
#223987 #873E22 #6B8722
monochromatic
#091025 #162456 #223987 #2E4EB8 #506ED3

Accessibility & contrast

On white

10.48
#223987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#223987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223987
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223987#FFFFFF#000000##FFFFFF
##2239871.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #223987;
/* rgb */ color: rgb(34, 57, 135);
/* oklch */ color: oklch(37.6% 0.134 267.2);
Tailwind
colors: {
  custom: {
    50: '#6c6fab',
    500: '#223987',
    950: '#000000',
  },
}
SCSS
$custom: #223987;
$custom-light: #6c6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#223987",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 226.337,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37622,
    "c": 0.13357,
    "h": 267.2
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#223987
secondary
#B79F4E
accent
#BF45E3
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #223987

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

Preview Lab → · Contrast checker → · Palette generator →

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