#2817B4#2817B4

#2817B4 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.7% C 0.223 H 272.5°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2817B4
RGBrgb(40, 23, 180)
HSLhsl(246, 77%, 40%)
HSVhsv(246, 87%, 71%)
CMYKcmyk(77.8%, 87.2%, 0%, 29.4%)
CIE-LABlab(24.82, 55.41, -76.94)
CIE-LCHlch(24.82, 94.81, 305.76°)
OKLaboklab(37.69% 0.0096 -0.2224)
OKLCHoklch(37.69% 0.223 272.5)
XYZxyz(9.4169, 4.3582, 43.5161)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2817B4 #A3B417
analogous
#1754B4 #2817B4 #7717B4
triadic
#2817B4 #B42817 #17B428
tetradic
#2817B4 #B41754 #A3B417 #17B477
square
#2817B4 #B41754 #A3B417 #17B477
split-complementary
#2817B4 #B47717 #54B417
monochromatic
#100947 #1C107E #2817B4 #3A25E3 #6B5BEA

Accessibility & contrast

On white

11.22
#2817B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2817B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2817B4
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2817B4#FFFFFF#000000##FFFFFF
##2817B41.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2817b4;
/* rgb */ color: rgb(40, 23, 180);
/* oklch */ color: oklch(37.7% 0.223 272.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ccc',
    500: '#2817b4',
    950: '#000000',
  },
}
SCSS
$custom: #2817b4;
$custom-light: #7c5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2817b4",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 246.497,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37687,
    "c": 0.22265,
    "h": 272.5
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2817B4

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

Preview Lab → · Contrast checker → · Palette generator →

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