#2817B3#2817B3

#2817B3 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.6% C 0.222 H 272.6°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2817B3
RGBrgb(40, 23, 179)
HSLhsl(247, 77%, 40%)
HSVhsv(247, 87%, 70%)
CMYKcmyk(77.7%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.69, 55.12, -76.55)
CIE-LCHlch(24.69, 94.33, 305.76°)
OKLaboklab(37.57% 0.0099 -0.2213)
OKLCHoklch(37.57% 0.222 272.6)
XYZxyz(9.3154, 4.3176, 42.9815)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2817B3 #A2B317
analogous
#1754B3 #2817B3 #7617B3
triadic
#2817B3 #B32817 #17B328
tetradic
#2817B3 #B31754 #A2B317 #17B376
square
#2817B3 #B31754 #A2B317 #17B376
split-complementary
#2817B3 #B37617 #54B317
monochromatic
#100947 #1C107D #2817B3 #3924E3 #6A5BEA

Accessibility & contrast

On white

11.27
#2817B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2817B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2817B3
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2817B3#FFFFFF#000000##FFFFFF
##2817B31.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0033B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2817b3;
/* rgb */ color: rgb(40, 23, 179);
/* oklch */ color: oklch(37.6% 0.222 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c5ccb',
    500: '#2817b3',
    950: '#000000',
  },
}
SCSS
$custom: #2817b3;
$custom-light: #7c5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2817b3",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 246.538,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37565,
    "c": 0.22154,
    "h": 272.6
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#2817B3
secondary
#C1CD58
accent
#F434DF
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2817B3

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

Preview Lab → · Contrast checker → · Palette generator →

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