#223A7E#223A7E

#223A7E is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.1% C 0.119 H 266.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#223A7E
RGBrgb(34, 58, 126)
HSLhsl(224, 58%, 31%)
HSVhsv(224, 73%, 49%)
CMYKcmyk(73%, 54%, 0%, 50.6%)
CIE-LABlab(26.37, 15.78, -41.33)
CIE-LCHlch(26.37, 44.23, 290.89°)
OKLaboklab(37.09% -0.0081 -0.1188)
OKLCHoklch(37.09% 0.119 266.1)
XYZxyz(5.9373, 4.8719, 20.3621)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223A7E #7E6622
analogous
#22687E #223A7E #38227E
triadic
#223A7E #7E223A #3A7E22
tetradic
#223A7E #7E2268 #7E6622 #227E38
square
#223A7E #7E2268 #7E6622 #227E38
split-complementary
#223A7E #7E3822 #687E22
monochromatic
#080E1E #15244E #223A7E #2F50AE #4C6ECF

Accessibility & contrast

On white

10.64
#223A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#223A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223A7E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223A7E#FFFFFF#000000##FFFFFF
##223A7E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4380
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #223a7e;
/* rgb */ color: rgb(34, 58, 126);
/* oklch */ color: oklch(37.1% 0.119 266.1);
Tailwind
colors: {
  custom: {
    50: '#6a6fa4',
    500: '#223a7e',
    950: '#000000',
  },
}
SCSS
$custom: #223a7e;
$custom-light: #6a6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#223a7e",
  "rgb": {
    "r": 34,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 224.348,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37092,
    "c": 0.11908,
    "h": 266.1
  },
  "luminance": 0.04873
}

Semantic roles & 50–950 ramp

primary
#223A7E
secondary
#B1964B
accent
#B947E1
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #223A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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