#223898#223898

#223898 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.159 H 268.0°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#223898
RGBrgb(34, 56, 152)
HSLhsl(229, 63%, 36%)
HSVhsv(229, 78%, 60%)
CMYKcmyk(77.6%, 63.2%, 0%, 40.4%)
CIE-LABlab(27.94, 27.33, -54.88)
CIE-LCHlch(27.94, 61.30, 296.47°)
OKLaboklab(38.93% -0.0055 -0.1586)
OKLCHoklch(38.93% 0.159 268)
XYZxyz(7.7394, 5.4346, 30.3408)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223898 #988222
analogous
#227398 #223898 #472298
triadic
#223898 #982238 #389822
tetradic
#223898 #982273 #988222 #229847
square
#223898 #982273 #988222 #229847
split-complementary
#223898 #984722 #739822
monochromatic
#0C1334 #172666 #223898 #2D4ACA #5A72DA

Accessibility & contrast

On white

10.06
#223898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#223898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223898
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223898#FFFFFF#000000##FFFFFF
##2238981.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #223898;
/* rgb */ color: rgb(34, 56, 152);
/* oklch */ color: oklch(38.9% 0.159 268.0);
Tailwind
colors: {
  custom: {
    50: '#706eb7',
    500: '#223898',
    950: '#000000',
  },
}
SCSS
$custom: #223898;
$custom-light: #706eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#223898",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 228.814,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38935,
    "c": 0.15874,
    "h": 268
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#223898
secondary
#BEAB57
accent
#C841E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223898

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

Preview Lab → · Contrast checker → · Palette generator →

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