#2817A0#2817A0

#2817A0 is a dark, highly saturated blue. Relative luminance 0.036; OKLCH L 35.3% C 0.200 H 274.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2817A0
RGBrgb(40, 23, 160)
HSLhsl(247, 75%, 36%)
HSVhsv(247, 86%, 63%)
CMYKcmyk(75%, 85.6%, 0%, 37.3%)
CIE-LABlab(22.31, 49.58, -69.04)
CIE-LCHlch(22.31, 85.00, 305.68°)
OKLaboklab(35.25% 0.0155 -0.1996)
OKLCHoklch(35.25% 0.2 274.4)
XYZxyz(7.5245, 3.6012, 33.5494)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2817A0 #8FA017
analogous
#174AA0 #2817A0 #6C17A0
triadic
#2817A0 #A02817 #17A028
tetradic
#2817A0 #A0174A #8FA017 #17A06C
square
#2817A0 #A0174A #8FA017 #17A06C
split-complementary
#2817A0 #A06C17 #4AA017
monochromatic
#0D0835 #1B0F6A #2817A0 #351FD6 #5F4CE5

Accessibility & contrast

On white

12.21
#2817A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2817A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2817A0
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2817A0#FFFFFF#000000##FFFFFF
##2817A01.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#002F9E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2817a0;
/* rgb */ color: rgb(40, 23, 160);
/* oklch */ color: oklch(35.3% 0.200 274.4);
Tailwind
colors: {
  custom: {
    50: '#785abe',
    500: '#2817a0',
    950: '#000000',
  },
}
SCSS
$custom: #2817a0;
$custom-light: #785abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2817a0",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 247.445,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35252,
    "c": 0.20018,
    "h": 274.4
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#2817A0
secondary
#B8C74C
accent
#F136DA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2817A0

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

Preview Lab → · Contrast checker → · Palette generator →

#2817A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva