#223989#223989

#223989 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.136 H 267.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#223989
RGBrgb(34, 57, 137)
HSLhsl(227, 60%, 34%)
HSVhsv(227, 75%, 54%)
CMYKcmyk(75.2%, 58.4%, 0%, 46.3%)
CIE-LABlab(26.94, 20.81, -47.27)
CIE-LCHlch(26.94, 51.65, 293.76°)
OKLaboklab(37.79% -0.0065 -0.1363)
OKLCHoklch(37.79% 0.136 267.3)
XYZxyz(6.6366, 5.0718, 24.2912)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223989 #897222
analogous
#226C89 #223989 #3E2289
triadic
#223989 #892239 #398922
tetradic
#223989 #89226C #897222 #22893E
square
#223989 #89226C #897222 #22893E
split-complementary
#223989 #893E22 #6C8922
monochromatic
#0A1027 #162558 #223989 #2E4DBA #516FD4

Accessibility & contrast

On white

10.42
#223989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#223989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223989
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223989#FFFFFF#000000##FFFFFF
##2239891.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #223989;
/* rgb */ color: rgb(34, 57, 137);
/* oklch */ color: oklch(37.8% 0.136 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d6fac',
    500: '#223989',
    950: '#000000',
  },
}
SCSS
$custom: #223989;
$custom-light: #6d6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#223989",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 137
  },
  "hsl": {
    "h": 226.602,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37794,
    "c": 0.13645,
    "h": 267.3
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#223989
secondary
#B8A04F
accent
#C044E3
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #223989

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

Preview Lab → · Contrast checker → · Palette generator →

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