#223F9C#223F9C

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

Color values

HEX#223F9C
RGBrgb(34, 63, 156)
HSLhsl(226, 64%, 37%)
HSVhsv(226, 78%, 61%)
CMYKcmyk(78.2%, 59.6%, 0%, 38.8%)
CIE-LABlab(30.14, 24.14, -53.71)
CIE-LCHlch(30.14, 58.89, 294.20°)
OKLaboklab(40.68% -0.0102 -0.1551)
OKLCHoklch(40.68% 0.155 266.2)
XYZxyz(8.4358, 6.2944, 32.2164)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223F9C #9C7F22
analogous
#227C9C #223F9C #42229C
triadic
#223F9C #9C223F #3F9C22
tetradic
#223F9C #9C227C #9C7F22 #229C42
square
#223F9C #9C227C #9C7F22 #229C42
split-complementary
#223F9C #9C4222 #7C9C22
monochromatic
#0C1638 #172B6A #223F9C #2D53CE #5D7BDC

Accessibility & contrast

On white

9.30
#223F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#223F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223F9C
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223F9C#FFFFFF#000000##FFFFFF
##223F9C1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #223f9c;
/* rgb */ color: rgb(34, 63, 156);
/* oklch */ color: oklch(40.7% 0.155 266.2);
Tailwind
colors: {
  custom: {
    50: '#7173ba',
    500: '#223f9c',
    950: '#000000',
  },
}
SCSS
$custom: #223f9c;
$custom-light: #7173ba;
$custom-dark: #000000;
JSON
{
  "hex": "#223f9c",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 225.738,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40681,
    "c": 0.15548,
    "h": 266.2
  },
  "luminance": 0.06295
}

Semantic roles & 50–950 ramp

primary
#223F9C
secondary
#C0A85A
accent
#C041E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #223F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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