#223998#223998

#223998 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.158 H 267.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#223998
RGBrgb(34, 57, 152)
HSLhsl(228, 63%, 36%)
HSVhsv(228, 78%, 60%)
CMYKcmyk(77.6%, 62.5%, 0%, 40.4%)
CIE-LABlab(28.20, 26.65, -54.45)
CIE-LCHlch(28.20, 60.62, 296.08°)
OKLaboklab(39.13% -0.0062 -0.1574)
OKLCHoklch(39.13% 0.158 267.7)
XYZxyz(7.7883, 5.5325, 30.3571)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223998 #988122
analogous
#227498 #223998 #462298
triadic
#223998 #982239 #399822
tetradic
#223998 #982274 #988122 #229846
square
#223998 #982274 #988122 #229846
split-complementary
#223998 #984622 #749822
monochromatic
#0C1334 #172666 #223998 #2D4CCA #5A73DA

Accessibility & contrast

On white

9.97
#223998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#223998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223998
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223998#FFFFFF#000000##FFFFFF
##2239981.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #223998;
/* rgb */ color: rgb(34, 57, 152);
/* oklch */ color: oklch(39.1% 0.158 267.7);
Tailwind
colors: {
  custom: {
    50: '#706fb7',
    500: '#223998',
    950: '#000000',
  },
}
SCSS
$custom: #223998;
$custom-light: #706fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#223998",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 152
  },
  "hsl": {
    "h": 228.305,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39129,
    "c": 0.1575,
    "h": 267.7
  },
  "luminance": 0.05533
}

Semantic roles & 50–950 ramp

primary
#223998
secondary
#BEAA57
accent
#C641E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223998

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

Preview Lab → · Contrast checker → · Palette generator →

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