#2917B4#2917B4

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

Color values

HEX#2917B4
RGBrgb(41, 23, 180)
HSLhsl(247, 77%, 40%)
HSVhsv(247, 87%, 71%)
CMYKcmyk(77.2%, 87.2%, 0%, 29.4%)
CIE-LABlab(24.89, 55.46, -76.83)
CIE-LCHlch(24.89, 94.75, 305.82°)
OKLaboklab(37.75% 0.0109 -0.2221)
OKLCHoklch(37.75% 0.222 272.8)
XYZxyz(9.4563, 4.3785, 43.5179)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2917B4 #A2B417
analogous
#1754B4 #2917B4 #7817B4
triadic
#2917B4 #B42917 #17B429
tetradic
#2917B4 #B41754 #A2B417 #17B478
square
#2917B4 #B41754 #A2B417 #17B478
split-complementary
#2917B4 #B47817 #54B417
monochromatic
#100947 #1D107E #2917B4 #3B25E3 #6C5BEA

Accessibility & contrast

On white

11.20
#2917B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2917B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2917B4
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2917B4#FFFFFF#000000##FFFFFF
##2917B41.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.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: #2917b4;
/* rgb */ color: rgb(41, 23, 180);
/* oklch */ color: oklch(37.7% 0.222 272.8);
Tailwind
colors: {
  custom: {
    50: '#7d5ccc',
    500: '#2917b4',
    950: '#000000',
  },
}
SCSS
$custom: #2917b4;
$custom-light: #7d5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2917b4",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 246.879,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37747,
    "c": 0.22239,
    "h": 272.8
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2917B4

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

Preview Lab → · Contrast checker → · Palette generator →

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