#313AB3#313AB3

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

Color values

HEX#313AB3
RGBrgb(49, 58, 179)
HSLhsl(236, 57%, 45%)
HSVhsv(236, 73%, 70%)
CMYKcmyk(72.6%, 67.6%, 0%, 29.8%)
CIE-LABlab(31.65, 37.62, -65.03)
CIE-LCHlch(31.65, 75.13, 300.05°)
OKLaboklab(42.62% 0.0068 -0.188)
OKLCHoklch(42.62% 0.188 272.1)
XYZxyz(10.9136, 6.9326, 43.4021)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AB3 #B3AA31
analogous
#317BB3 #313AB3 #6931B3
triadic
#313AB3 #B3313A #3AB331
tetradic
#313AB3 #B3317B #B3AA31 #31B369
square
#313AB3 #B3317B #B3AA31 #31B369
split-complementary
#313AB3 #B36931 #7BB331
monochromatic
#171B53 #242A83 #313AB3 #525AD0 #8288DD

Accessibility & contrast

On white

8.80
#313AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#313AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AB3
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AB3#FFFFFF#000000##FFFFFF
##313AB31.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313ab3;
/* rgb */ color: rgb(49, 58, 179);
/* oklch */ color: oklch(42.6% 0.188 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c70cb',
    500: '#313ab3',
    950: '#000000',
  },
}
SCSS
$custom: #313ab3;
$custom-light: #7c70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#313ab3",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 235.846,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42618,
    "c": 0.18814,
    "h": 272.1
  },
  "luminance": 0.06934
}

Semantic roles & 50–950 ramp

primary
#313AB3
secondary
#C6C17A
accent
#D648E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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