#313A9F#313A9F

#313A9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.162 H 272.9°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#313A9F
RGBrgb(49, 58, 159)
HSLhsl(235, 53%, 41%)
HSVhsv(235, 69%, 62%)
CMYKcmyk(69.2%, 63.5%, 0%, 37.6%)
CIE-LABlab(29.87, 30.50, -55.95)
CIE-LCHlch(29.87, 63.73, 298.59°)
OKLaboklab(40.76% 0.0083 -0.1614)
OKLCHoklch(40.76% 0.162 272.9)
XYZxyz(9.0356, 6.1814, 33.5111)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A9F #9F9631
analogous
#31719F #313A9F #5F319F
triadic
#313A9F #9F313A #3A9F31
tetradic
#313A9F #9F3171 #9F9631 #319F5F
square
#313A9F #9F3171 #9F9631 #319F5F
split-complementary
#313A9F #9F5F31 #719F31
monochromatic
#141841 #232970 #313A9F #4751C6 #767DD5

Accessibility & contrast

On white

9.39
#313A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#313A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A9F
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A9F#FFFFFF#000000##FFFFFF
##313A9F1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313a9f;
/* rgb */ color: rgb(49, 58, 159);
/* oklch */ color: oklch(40.8% 0.162 272.9);
Tailwind
colors: {
  custom: {
    50: '#7870bc',
    500: '#313a9f',
    950: '#000000',
  },
}
SCSS
$custom: #313a9f;
$custom-light: #7870bc;
$custom-dark: #000000;
JSON
{
  "hex": "#313a9f",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 159
  },
  "hsl": {
    "h": 235.091,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40763,
    "c": 0.16165,
    "h": 272.9
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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