#2C17A0#2C17A0

#2C17A0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.199 H 276.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2C17A0
RGBrgb(44, 23, 160)
HSLhsl(249, 75%, 36%)
HSVhsv(249, 86%, 63%)
CMYKcmyk(72.5%, 85.6%, 0%, 37.3%)
CIE-LABlab(22.60, 49.84, -68.54)
CIE-LCHlch(22.60, 84.74, 306.03°)
OKLaboklab(35.53% 0.0211 -0.198)
OKLCHoklch(35.53% 0.199 276.1)
XYZxyz(7.6882, 3.6856, 33.5571)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C17A0 #8BA017
analogous
#1746A0 #2C17A0 #7017A0
triadic
#2C17A0 #A02C17 #17A02C
tetradic
#2C17A0 #A01746 #8BA017 #17A070
square
#2C17A0 #A01746 #8BA017 #17A070
split-complementary
#2C17A0 #A07017 #46A017
monochromatic
#0F0835 #1D0F6A #2C17A0 #3B1FD6 #644CE5

Accessibility & contrast

On white

12.09
#2C17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C17A0
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C17A0#FFFFFF#000000##FFFFFF
##2C17A01.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c17a0;
/* rgb */ color: rgb(44, 23, 160);
/* oklch */ color: oklch(35.5% 0.199 276.1);
Tailwind
colors: {
  custom: {
    50: '#795abe',
    500: '#2c17a0',
    950: '#000000',
  },
}
SCSS
$custom: #2c17a0;
$custom-light: #795abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2c17a0",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 249.197,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35532,
    "c": 0.19917,
    "h": 276.1
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#2C17A0
secondary
#B4C74C
accent
#F136D5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C17A0

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

Preview Lab → · Contrast checker → · Palette generator →

#2C17A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva