#202157#202157

#202157 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.095 H 277.6°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#202157
RGBrgb(32, 33, 87)
HSLhsl(239, 46%, 23%)
HSVhsv(239, 63%, 34%)
CMYKcmyk(63.2%, 62.1%, 0%, 65.9%)
CIE-LABlab(15.92, 17.94, -32.95)
CIE-LCHlch(15.92, 37.51, 298.57°)
OKLaboklab(28.23% 0.0126 -0.0945)
OKLCHoklch(28.23% 0.095 277.6)
XYZxyz(2.8593, 2.0827, 9.2663)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202157 #575620
analogous
#203C57 #202157 #3A2057
triadic
#202157 #572021 #215720
tetradic
#202157 #57203C #575620 #20573A
square
#202157 #57203C #575620 #20573A
split-complementary
#202157 #573A20 #3C5720
monochromatic
#080816 #10102A #202157 #303284 #4143B0

Accessibility & contrast

On white

14.82
#202157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#202157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202157
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202157#FFFFFF#000000##FFFFFF
##2021571.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #202157;
/* rgb */ color: rgb(32, 33, 87);
/* oklch */ color: oklch(28.2% 0.095 277.6);
Tailwind
colors: {
  custom: {
    50: '#625c87',
    500: '#202157',
    950: '#000000',
  },
}
SCSS
$custom: #202157;
$custom-light: #625c87;
$custom-dark: #000000;
JSON
{
  "hex": "#202157",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 238.909,
    "s": 46.218,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28233,
    "c": 0.09538,
    "h": 277.6
  },
  "luminance": 0.02083
}

Semantic roles & 50–950 ramp

primary
#202157
secondary
#8B8A47
accent
#D352D6
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #202157

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

Preview Lab → · Contrast checker → · Palette generator →

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