#313F9C#313F9C

#313F9C is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.151 H 271.6°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#313F9C
RGBrgb(49, 63, 156)
HSLhsl(232, 52%, 40%)
HSVhsv(232, 69%, 61%)
CMYKcmyk(68.6%, 59.6%, 0%, 38.8%)
CIE-LABlab(30.90, 26.12, -52.46)
CIE-LCHlch(30.90, 58.60, 296.47°)
OKLaboklab(41.45% 0.0043 -0.1511)
OKLCHoklch(41.45% 0.151 271.6)
XYZxyz(9.0429, 6.6074, 32.2448)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F9C #9C8E31
analogous
#31749C #313F9C #59319C
triadic
#313F9C #9C313F #3F9C31
tetradic
#313F9C #9C3174 #9C8E31 #319C59
square
#313F9C #9C3174 #9C8E31 #319C59
split-complementary
#313F9C #9C5931 #749C31
monochromatic
#14193F #222C6D #313F9C #4556C5 #7481D3

Accessibility & contrast

On white

9.05
#313F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#313F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F9C
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F9C#FFFFFF#000000##FFFFFF
##313F9C1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313f9c;
/* rgb */ color: rgb(49, 63, 156);
/* oklch */ color: oklch(41.4% 0.151 271.6);
Tailwind
colors: {
  custom: {
    50: '#7773ba',
    500: '#313f9c',
    950: '#000000',
  },
}
SCSS
$custom: #313f9c;
$custom-light: #7773ba;
$custom-dark: #000000;
JSON
{
  "hex": "#313f9c",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 232.15,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41447,
    "c": 0.15118,
    "h": 271.6
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#313F9C
secondary
#BBB16D
accent
#C94CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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