#313AB1#313AB1

#313AB1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.186 H 272.2°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#313AB1
RGBrgb(49, 58, 177)
HSLhsl(236, 57%, 44%)
HSVhsv(236, 72%, 69%)
CMYKcmyk(72.3%, 67.2%, 0%, 30.6%)
CIE-LABlab(31.47, 36.92, -64.14)
CIE-LCHlch(31.47, 74.01, 299.92°)
OKLaboklab(42.43% 0.007 -0.1854)
OKLCHoklch(42.43% 0.186 272.2)
XYZxyz(10.7128, 6.8523, 42.3445)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AB1 #B1A831
analogous
#317AB1 #313AB1 #6831B1
triadic
#313AB1 #B1313A #3AB131
tetradic
#313AB1 #B1317A #B1A831 #31B168
square
#313AB1 #B1317A #B1A831 #31B168
split-complementary
#313AB1 #B16831 #7AB131
monochromatic
#161B51 #242A81 #313AB1 #5159CF #8087DC

Accessibility & contrast

On white

8.86
#313AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#313AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AB1
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AB1#FFFFFF#000000##FFFFFF
##313AB11.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313ab1;
/* rgb */ color: rgb(49, 58, 177);
/* oklch */ color: oklch(42.4% 0.186 272.2);
Tailwind
colors: {
  custom: {
    50: '#7c70c9',
    500: '#313ab1',
    950: '#000000',
  },
}
SCSS
$custom: #313ab1;
$custom-light: #7c70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313ab1",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 177
  },
  "hsl": {
    "h": 235.781,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42427,
    "c": 0.18556,
    "h": 272.2
  },
  "luminance": 0.06853
}

Semantic roles & 50–950 ramp

primary
#313AB1
secondary
#C5C079
accent
#D548E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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