#223271#223271

#223271 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.3% C 0.110 H 269.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#223271
RGBrgb(34, 50, 113)
HSLhsl(228, 54%, 29%)
HSVhsv(228, 70%, 44%)
CMYKcmyk(69.9%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.04, 16.27, -38.45)
CIE-LCHlch(23.04, 41.75, 292.93°)
OKLaboklab(34.27% -0.0017 -0.1105)
OKLCHoklch(34.27% 0.11 269.1)
XYZxyz(4.7799, 3.8131, 16.1037)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223271 #716122
analogous
#225A71 #223271 #3A2271
triadic
#223271 #712232 #327122
tetradic
#223271 #71225A #716122 #22713A
square
#223271 #71225A #716122 #22713A
split-complementary
#223271 #713A22 #5A7122
monochromatic
#070A18 #141D42 #223271 #3047A0 #4660C7

Accessibility & contrast

On white

11.91
#223271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#223271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223271
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223271#FFFFFF#000000##FFFFFF
##2232711.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073B73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #223271;
/* rgb */ color: rgb(34, 50, 113);
/* oklch */ color: oklch(34.3% 0.110 269.1);
Tailwind
colors: {
  custom: {
    50: '#67699a',
    500: '#223271',
    950: '#000000',
  },
}
SCSS
$custom: #223271;
$custom-light: #67699a;
$custom-dark: #000000;
JSON
{
  "hex": "#223271",
  "rgb": {
    "r": 34,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 227.848,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34266,
    "c": 0.11048,
    "h": 269.1
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#223271
secondary
#A4924A
accent
#BF4BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #223271

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

Preview Lab → · Contrast checker → · Palette generator →

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