#2917B3#2917B3

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

Color values

HEX#2917B3
RGBrgb(41, 23, 179)
HSLhsl(247, 77%, 40%)
HSVhsv(247, 87%, 70%)
CMYKcmyk(77.1%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.76, 55.17, -76.44)
CIE-LCHlch(24.76, 94.27, 305.82°)
OKLaboklab(37.63% 0.0112 -0.221)
OKLCHoklch(37.63% 0.221 272.9)
XYZxyz(9.3548, 4.3379, 42.9834)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2917B3 #A1B317
analogous
#1753B3 #2917B3 #7717B3
triadic
#2917B3 #B32917 #17B329
tetradic
#2917B3 #B31753 #A1B317 #17B377
square
#2917B3 #B31753 #A1B317 #17B377
split-complementary
#2917B3 #B37717 #53B317
monochromatic
#100947 #1D107D #2917B3 #3A24E3 #6B5BEA

Accessibility & contrast

On white

11.24
#2917B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2917B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2917B3
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2917B3#FFFFFF#000000##FFFFFF
##2917B31.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.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: #2917b3;
/* rgb */ color: rgb(41, 23, 179);
/* oklch */ color: oklch(37.6% 0.221 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ccb',
    500: '#2917b3',
    950: '#000000',
  },
}
SCSS
$custom: #2917b3;
$custom-light: #7c5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2917b3",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 246.923,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37625,
    "c": 0.22128,
    "h": 272.9
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#2917B3
secondary
#C0CD58
accent
#F434DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2917B3

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

Preview Lab → · Contrast checker → · Palette generator →

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