#313482#313482

#313482 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.129 H 276.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#313482
RGBrgb(49, 52, 130)
HSLhsl(238, 45%, 35%)
HSVhsv(238, 62%, 51%)
CMYKcmyk(62.3%, 60%, 0%, 49%)
CIE-LABlab(25.92, 24.01, -44.51)
CIE-LCHlch(25.92, 50.57, 298.34°)
OKLaboklab(37.1% 0.0145 -0.1279)
OKLCHoklch(37.1% 0.129 276.5)
XYZxyz(6.5226, 4.7202, 21.6821)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313482 #827F31
analogous
#315C82 #313482 #573182
triadic
#313482 #823134 #348231
tetradic
#313482 #82315C #827F31 #318257
square
#313482 #82315C #827F31 #318257
split-complementary
#313482 #825731 #5C8231
monochromatic
#0F1029 #202256 #313482 #4246AE #686BC6

Accessibility & contrast

On white

10.80
#313482 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#313482 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313482
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313482#FFFFFF#000000##FFFFFF
##3134821.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313482;
/* rgb */ color: rgb(49, 52, 130);
/* oklch */ color: oklch(37.1% 0.129 276.5);
Tailwind
colors: {
  custom: {
    50: '#726ba7',
    500: '#313482',
    950: '#000000',
  },
}
SCSS
$custom: #313482;
$custom-light: #726ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#313482",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 130
  },
  "hsl": {
    "h": 237.778,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37101,
    "c": 0.1287,
    "h": 276.5
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#313482
secondary
#ADAA62
accent
#D053D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #313482

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

Preview Lab → · Contrast checker → · Palette generator →

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