#3117B4#3117B4

#3117B4 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.3% C 0.220 H 275.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#3117B4
RGBrgb(49, 23, 180)
HSLhsl(250, 77%, 40%)
HSVhsv(250, 87%, 71%)
CMYKcmyk(72.8%, 87.2%, 0%, 29.4%)
CIE-LABlab(25.44, 55.89, -75.89)
CIE-LCHlch(25.44, 94.25, 306.37°)
OKLaboklab(38.27% 0.0219 -0.2192)
OKLCHoklch(38.27% 0.22 275.7)
XYZxyz(9.8085, 4.5601, 43.5344)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3117B4 #9AB417
analogous
#174CB4 #3117B4 #7F17B4
triadic
#3117B4 #B43117 #17B431
tetradic
#3117B4 #B4174C #9AB417 #17B47F
square
#3117B4 #B4174C #9AB417 #17B47F
split-complementary
#3117B4 #B47F17 #4CB417
monochromatic
#130947 #22107E #3117B4 #4525E3 #735BEA

Accessibility & contrast

On white

10.98
#3117B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3117B4
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3117B4#FFFFFF#000000##FFFFFF
##3117B41.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.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: #3117b4;
/* rgb */ color: rgb(49, 23, 180);
/* oklch */ color: oklch(38.3% 0.220 275.7);
Tailwind
colors: {
  custom: {
    50: '#7f5dcc',
    500: '#3117b4',
    950: '#000000',
  },
}
SCSS
$custom: #3117b4;
$custom-light: #7f5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3117b4",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 249.936,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38273,
    "c": 0.22034,
    "h": 275.7
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#3117B4
secondary
#BACE59
accent
#F434D4
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3117B4

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

Preview Lab → · Contrast checker → · Palette generator →

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