#223A8A#223A8A

#223A8A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.137 H 267.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#223A8A
RGBrgb(34, 58, 138)
HSLhsl(226, 60%, 34%)
HSVhsv(226, 75%, 54%)
CMYKcmyk(75.4%, 58%, 0%, 45.9%)
CIE-LABlab(27.30, 20.51, -47.30)
CIE-LCHlch(27.30, 51.56, 293.45°)
OKLaboklab(38.09% -0.0072 -0.1364)
OKLCHoklch(38.09% 0.137 267)
XYZxyz(6.7586, 5.2005, 24.6874)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223A8A #8A7222
analogous
#226E8A #223A8A #3E228A
triadic
#223A8A #8A223A #3A8A22
tetradic
#223A8A #8A226E #8A7222 #228A3E
square
#223A8A #8A226E #8A7222 #228A3E
split-complementary
#223A8A #8A3E22 #6E8A22
monochromatic
#0A1128 #162559 #223A8A #2E4FBB #5270D4

Accessibility & contrast

On white

10.29
#223A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#223A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223A8A
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223A8A#FFFFFF#000000##FFFFFF
##223A8A1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #223a8a;
/* rgb */ color: rgb(34, 58, 138);
/* oklch */ color: oklch(38.1% 0.137 267.0);
Tailwind
colors: {
  custom: {
    50: '#6d6fad',
    500: '#223a8a',
    950: '#000000',
  },
}
SCSS
$custom: #223a8a;
$custom-light: #6d6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#223a8a",
  "rgb": {
    "r": 34,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 226.154,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38089,
    "c": 0.13658,
    "h": 267
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

primary
#223A8A
secondary
#B8A050
accent
#BF44E4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #223A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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