#313A9D#313A9D

#313A9D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.159 H 273.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#313A9D
RGBrgb(49, 58, 157)
HSLhsl(235, 52%, 40%)
HSVhsv(235, 69%, 62%)
CMYKcmyk(68.8%, 63.1%, 0%, 38.4%)
CIE-LABlab(29.69, 29.78, -55.02)
CIE-LCHlch(29.69, 62.56, 298.42°)
OKLaboklab(40.58% 0.0084 -0.1587)
OKLCHoklch(40.58% 0.159 273)
XYZxyz(8.8634, 6.1126, 32.6045)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A9D #9D9431
analogous
#31709D #313A9D #5E319D
triadic
#313A9D #9D313A #3A9D31
tetradic
#313A9D #9D3170 #9D9431 #319D5E
square
#313A9D #9D3170 #9D9431 #319D5E
split-complementary
#313A9D #9D5E31 #709D31
monochromatic
#141840 #22296E #313A9D #4651C5 #757DD4

Accessibility & contrast

On white

9.45
#313A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#313A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A9D
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A9D#FFFFFF#000000##FFFFFF
##313A9D1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313a9d;
/* rgb */ color: rgb(49, 58, 157);
/* oklch */ color: oklch(40.6% 0.159 273.0);
Tailwind
colors: {
  custom: {
    50: '#7770bb',
    500: '#313a9d',
    950: '#000000',
  },
}
SCSS
$custom: #313a9d;
$custom-light: #7770bb;
$custom-dark: #000000;
JSON
{
  "hex": "#313a9d",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 235,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40584,
    "c": 0.15892,
    "h": 273
  },
  "luminance": 0.06113
}

Semantic roles & 50–950 ramp

primary
#313A9D
secondary
#BCB56E
accent
#D04CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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