#313FA9#313FA9

#313FA9 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.169 H 271.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#313FA9
RGBrgb(49, 63, 169)
HSLhsl(233, 55%, 43%)
HSVhsv(233, 71%, 66%)
CMYKcmyk(71%, 62.7%, 0%, 33.7%)
CIE-LABlab(31.97, 30.87, -58.54)
CIE-LCHlch(31.97, 66.18, 297.80°)
OKLaboklab(42.58% 0.0041 -0.169)
OKLCHoklch(42.58% 0.169 271.4)
XYZxyz(10.2031, 7.0715, 38.3557)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FA9 #A99B31
analogous
#317BA9 #313FA9 #5F31A9
triadic
#313FA9 #A9313F #3FA931
tetradic
#313FA9 #A9317B #A99B31 #31A95F
square
#313FA9 #A9317B #A99B31 #31A95F
split-complementary
#313FA9 #A95F31 #7BA931
monochromatic
#151C4A #232D7A #313FA9 #4C5BCB #7C86D9

Accessibility & contrast

On white

8.70
#313FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#313FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FA9
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FA9#FFFFFF#000000##FFFFFF
##313FA91.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313fa9;
/* rgb */ color: rgb(49, 63, 169);
/* oklch */ color: oklch(42.6% 0.169 271.4);
Tailwind
colors: {
  custom: {
    50: '#7a74c3',
    500: '#313fa9',
    950: '#000000',
  },
}
SCSS
$custom: #313fa9;
$custom-light: #7a74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#313fa9",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 169
  },
  "hsl": {
    "h": 233,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42576,
    "c": 0.16905,
    "h": 271.4
  },
  "luminance": 0.07073
}

Semantic roles & 50–950 ramp

primary
#313FA9
secondary
#C1B874
accent
#CD49DE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #313FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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