#2817A1#2817A1

#2817A1 is a dark, highly saturated blue. Relative luminance 0.036; OKLCH L 35.4% C 0.201 H 274.3°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2817A1
RGBrgb(40, 23, 161)
HSLhsl(247, 75%, 36%)
HSVhsv(247, 86%, 63%)
CMYKcmyk(75.2%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.43, 49.88, -69.44)
CIE-LCHlch(22.43, 85.50, 305.69°)
OKLaboklab(35.37% 0.0152 -0.2008)
OKLCHoklch(35.37% 0.201 274.3)
XYZxyz(7.6124, 3.6363, 34.0120)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2817A1 #90A117
analogous
#174BA1 #2817A1 #6D17A1
triadic
#2817A1 #A12817 #17A128
tetradic
#2817A1 #A1174B #90A117 #17A16D
square
#2817A1 #A1174B #90A117 #17A16D
split-complementary
#2817A1 #A16D17 #4BA117
monochromatic
#0D0836 #1B0F6B #2817A1 #351FD7 #604DE6

Accessibility & contrast

On white

12.16
#2817A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2817A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2817A1
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2817A1#FFFFFF#000000##FFFFFF
##2817A11.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2817a1;
/* rgb */ color: rgb(40, 23, 161);
/* oklch */ color: oklch(35.4% 0.201 274.3);
Tailwind
colors: {
  custom: {
    50: '#785abe',
    500: '#2817a1',
    950: '#000000',
  },
}
SCSS
$custom: #2817a1;
$custom-light: #785abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2817a1",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 247.391,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35373,
    "c": 0.20132,
    "h": 274.3
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#2817A1
secondary
#B8C74C
accent
#F236DB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2817A1

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

Preview Lab → · Contrast checker → · Palette generator →

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