#3118B4#3118B4

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

Color values

HEX#3118B4
RGBrgb(49, 24, 180)
HSLhsl(250, 76%, 40%)
HSVhsv(250, 87%, 71%)
CMYKcmyk(72.8%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.57, 55.53, -75.68)
CIE-LCHlch(25.57, 93.87, 306.27°)
OKLaboklab(38.36% 0.0216 -0.2187)
OKLCHoklch(38.36% 0.22 275.6)
XYZxyz(9.8288, 4.6006, 43.5412)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3118B4 #9BB418
analogous
#184DB4 #3118B4 #7F18B4
triadic
#3118B4 #B43118 #18B431
tetradic
#3118B4 #B4184D #9BB418 #18B47F
square
#3118B4 #B4184D #9BB418 #18B47F
split-complementary
#3118B4 #B47F18 #4DB418
monochromatic
#140A48 #22117E #3118B4 #4527E2 #735DE9

Accessibility & contrast

On white

10.94
#3118B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3118B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3118B4
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3118B4#FFFFFF#000000##FFFFFF
##3118B41.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3118b4;
/* rgb */ color: rgb(49, 24, 180);
/* oklch */ color: oklch(38.4% 0.220 275.6);
Tailwind
colors: {
  custom: {
    50: '#7f5dcc',
    500: '#3118b4',
    950: '#000000',
  },
}
SCSS
$custom: #3118b4;
$custom-light: #7f5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3118b4",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 249.615,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.38356,
    "c": 0.21975,
    "h": 275.6
  },
  "luminance": 0.04602
}

Semantic roles & 50–950 ramp

primary
#3118B4
secondary
#BBCD5B
accent
#F335D5
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3118B4

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

Preview Lab → · Contrast checker → · Palette generator →

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