#313AB2#313AB2

#313AB2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.187 H 272.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#313AB2
RGBrgb(49, 58, 178)
HSLhsl(236, 57%, 45%)
HSVhsv(236, 72%, 70%)
CMYKcmyk(72.5%, 67.4%, 0%, 30.2%)
CIE-LABlab(31.56, 37.27, -64.59)
CIE-LCHlch(31.56, 74.57, 299.99°)
OKLaboklab(42.52% 0.0069 -0.1867)
OKLCHoklch(42.52% 0.187 272.1)
XYZxyz(10.8128, 6.8923, 42.8714)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AB2 #B2A931
analogous
#317BB2 #313AB2 #6931B2
triadic
#313AB2 #B2313A #3AB231
tetradic
#313AB2 #B2317B #B2A931 #31B269
square
#313AB2 #B2317B #B2A931 #31B269
split-complementary
#313AB2 #B26931 #7BB231
monochromatic
#171B52 #242A82 #313AB2 #515ACF #8187DC

Accessibility & contrast

On white

8.83
#313AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#313AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AB2
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AB2#FFFFFF#000000##FFFFFF
##313AB21.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313ab2;
/* rgb */ color: rgb(49, 58, 178);
/* oklch */ color: oklch(42.5% 0.187 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c70ca',
    500: '#313ab2',
    950: '#000000',
  },
}
SCSS
$custom: #313ab2;
$custom-light: #7c70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#313ab2",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 235.814,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42523,
    "c": 0.18686,
    "h": 272.1
  },
  "luminance": 0.06893
}

Semantic roles & 50–950 ramp

primary
#313AB2
secondary
#C5C079
accent
#D548E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313AB2

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

Preview Lab → · Contrast checker → · Palette generator →

#313AB2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva