#313185#313185

#313185 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.137 H 277.3°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#313185
RGBrgb(49, 49, 133)
HSLhsl(240, 46%, 36%)
HSVhsv(240, 63%, 52%)
CMYKcmyk(63.2%, 63.2%, 0%, 47.8%)
CIE-LABlab(25.39, 27.08, -47.26)
CIE-LCHlch(25.39, 54.47, 299.82°)
OKLaboklab(36.78% 0.0174 -0.136)
OKLCHoklch(36.78% 0.137 277.3)
XYZxyz(6.5972, 4.5425, 22.7149)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313185 #858531
analogous
#315B85 #313185 #5B3185
triadic
#313185 #853131 #318531
tetradic
#313185 #85315B #858531 #31855B
square
#313185 #85315B #858531 #31855B
split-complementary
#313185 #855B31 #5B8531
monochromatic
#10102C #212158 #313185 #4141B2 #6969C8

Accessibility & contrast

On white

11.00
#313185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#313185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313185
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313185#FFFFFF#000000##FFFFFF
##3131851.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313185;
/* rgb */ color: rgb(49, 49, 133);
/* oklch */ color: oklch(36.8% 0.137 277.3);
Tailwind
colors: {
  custom: {
    50: '#7369a9',
    500: '#313185',
    950: '#000000',
  },
}
SCSS
$custom: #313185;
$custom-light: #7369a9;
$custom-dark: #000000;
JSON
{
  "hex": "#313185",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36784,
    "c": 0.13707,
    "h": 277.3
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#313185
secondary
#AFAF63
accent
#D652D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313185

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

Preview Lab → · Contrast checker → · Palette generator →

#313185 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva