#313BA9#313BA9

#313BA9 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.174 H 272.3°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#313BA9
RGBrgb(49, 59, 169)
HSLhsl(235, 55%, 43%)
HSVhsv(235, 71%, 66%)
CMYKcmyk(71%, 65.1%, 0%, 33.7%)
CIE-LABlab(30.98, 33.45, -60.16)
CIE-LCHlch(30.98, 68.83, 299.07°)
OKLaboklab(41.85% 0.007 -0.1737)
OKLCHoklch(41.85% 0.174 272.3)
XYZxyz(9.9896, 6.6445, 38.2845)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BA9 #A99F31
analogous
#3177A9 #313BA9 #6331A9
triadic
#313BA9 #A9313B #3BA931
tetradic
#313BA9 #A93177 #A99F31 #31A963
square
#313BA9 #A93177 #A99F31 #31A963
split-complementary
#313BA9 #A96331 #77A931
monochromatic
#151A4A #232A7A #313BA9 #4C57CB #7C83D9

Accessibility & contrast

On white

9.02
#313BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#313BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BA9
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BA9#FFFFFF#000000##FFFFFF
##313BA91.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ba9;
/* rgb */ color: rgb(49, 59, 169);
/* oklch */ color: oklch(41.9% 0.174 272.3);
Tailwind
colors: {
  custom: {
    50: '#7a71c4',
    500: '#313ba9',
    950: '#000000',
  },
}
SCSS
$custom: #313ba9;
$custom-light: #7a71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#313ba9",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 169
  },
  "hsl": {
    "h": 235,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41852,
    "c": 0.17389,
    "h": 272.3
  },
  "luminance": 0.06645
}

Semantic roles & 50–950 ramp

primary
#313BA9
secondary
#C1BB74
accent
#D249DE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #313BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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