#203271#203271

#203271 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.111 H 268.0°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#203271
RGBrgb(32, 50, 113)
HSLhsl(227, 56%, 28%)
HSVhsv(227, 72%, 44%)
CMYKcmyk(71.7%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.93, 15.92, -38.64)
CIE-LCHlch(22.93, 41.79, 292.40°)
OKLaboklab(34.15% -0.0038 -0.1111)
OKLCHoklch(34.15% 0.111 268)
XYZxyz(4.7159, 3.7801, 16.1007)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#203271 #715F20
analogous
#205A71 #203271 #362071
triadic
#203271 #712032 #327120
tetradic
#203271 #71205A #715F20 #207136
square
#203271 #71205A #715F20 #207136
split-complementary
#203271 #713620 #5A7120
monochromatic
#070B18 #121D41 #203271 #2E47A1 #4260C9

Accessibility & contrast

On white

11.96
#203271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #203271
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##203271#FFFFFF#000000##FFFFFF
##2032711.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #203271;
/* rgb */ color: rgb(32, 50, 113);
/* oklch */ color: oklch(34.2% 0.111 268.0);
Tailwind
colors: {
  custom: {
    50: '#66699a',
    500: '#203271',
    950: '#000000',
  },
}
SCSS
$custom: #203271;
$custom-light: #66699a;
$custom-dark: #000000;
JSON
{
  "hex": "#203271",
  "rgb": {
    "r": 32,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 226.667,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3415,
    "c": 0.11114,
    "h": 268
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#203271
secondary
#A59048
accent
#BE49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #203271

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

Preview Lab → · Contrast checker → · Palette generator →

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