#3017B4#3017B4

#3017B4 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 38.2% C 0.221 H 275.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3017B4
RGBrgb(48, 23, 180)
HSLhsl(250, 77%, 40%)
HSVhsv(250, 87%, 71%)
CMYKcmyk(73.3%, 87.2%, 0%, 29.4%)
CIE-LABlab(25.37, 55.83, -76.01)
CIE-LCHlch(25.37, 94.32, 306.30°)
OKLaboklab(38.2% 0.0205 -0.2196)
OKLCHoklch(38.2% 0.221 275.3)
XYZxyz(9.7608, 4.5355, 43.5322)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3017B4 #9BB417
analogous
#174DB4 #3017B4 #7E17B4
triadic
#3017B4 #B43017 #17B430
tetradic
#3017B4 #B4174D #9BB417 #17B47E
square
#3017B4 #B4174D #9BB417 #17B47E
split-complementary
#3017B4 #B47E17 #4DB417
monochromatic
#130947 #22107E #3017B4 #4325E3 #725BEA

Accessibility & contrast

On white

11.01
#3017B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3017B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3017B4
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3017B4#FFFFFF#000000##FFFFFF
##3017B41.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3017b4;
/* rgb */ color: rgb(48, 23, 180);
/* oklch */ color: oklch(38.2% 0.221 275.3);
Tailwind
colors: {
  custom: {
    50: '#7f5ccc',
    500: '#3017b4',
    950: '#000000',
  },
}
SCSS
$custom: #3017b4;
$custom-light: #7f5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#3017b4",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 249.554,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38203,
    "c": 0.22058,
    "h": 275.3
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#3017B4
secondary
#BBCE59
accent
#F434D5
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3017B4

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

Preview Lab → · Contrast checker → · Palette generator →

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