#223F9B#223F9B

#223F9B is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.154 H 266.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#223F9B
RGBrgb(34, 63, 155)
HSLhsl(226, 64%, 37%)
HSVhsv(226, 78%, 61%)
CMYKcmyk(78.1%, 59.4%, 0%, 39.2%)
CIE-LABlab(30.06, 23.75, -53.24)
CIE-LCHlch(30.06, 58.30, 294.04°)
OKLaboklab(40.59% -0.0103 -0.1537)
OKLCHoklch(40.59% 0.154 266.2)
XYZxyz(8.3515, 6.2607, 31.7723)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223F9B #9B7E22
analogous
#227C9B #223F9B #42229B
triadic
#223F9B #9B223F #3F9B22
tetradic
#223F9B #9B227C #9B7E22 #229B42
square
#223F9B #9B227C #9B7E22 #229B42
split-complementary
#223F9B #9B4222 #7C9B22
monochromatic
#0C1637 #172B69 #223F9B #2D53CD #5C7BDB

Accessibility & contrast

On white

9.32
#223F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#223F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223F9B
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223F9B#FFFFFF#000000##FFFFFF
##223F9B1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #223f9b;
/* rgb */ color: rgb(34, 63, 155);
/* oklch */ color: oklch(40.6% 0.154 266.2);
Tailwind
colors: {
  custom: {
    50: '#7173b9',
    500: '#223f9b',
    950: '#000000',
  },
}
SCSS
$custom: #223f9b;
$custom-light: #7173b9;
$custom-dark: #000000;
JSON
{
  "hex": "#223f9b",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 155
  },
  "hsl": {
    "h": 225.62,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40594,
    "c": 0.15409,
    "h": 266.2
  },
  "luminance": 0.06262
}

Semantic roles & 50–950 ramp

primary
#223F9B
secondary
#C0A759
accent
#BF41E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #223F9B

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

Preview Lab → · Contrast checker → · Palette generator →

#223F9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva