#313A83#313A83

#313A83 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.122 H 273.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#313A83
RGBrgb(49, 58, 131)
HSLhsl(233, 46%, 35%)
HSVhsv(233, 63%, 51%)
CMYKcmyk(62.6%, 55.7%, 0%, 48.6%)
CIE-LABlab(27.62, 20.31, -42.39)
CIE-LCHlch(27.62, 47.00, 295.60°)
OKLaboklab(38.39% 0.0083 -0.1216)
OKLCHoklch(38.39% 0.122 273.9)
XYZxyz(6.8751, 5.3172, 22.1324)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A83 #837A31
analogous
#316383 #313A83 #513183
triadic
#313A83 #83313A #3A8331
tetradic
#313A83 #833163 #837A31 #318351
square
#313A83 #833163 #837A31 #318351
split-complementary
#313A83 #835131 #638331
monochromatic
#10132A #202656 #313A83 #424EB0 #6872C6

Accessibility & contrast

On white

10.18
#313A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A83
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A83#FFFFFF#000000##FFFFFF
##313A831.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094586
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313a83;
/* rgb */ color: rgb(49, 58, 131);
/* oklch */ color: oklch(38.4% 0.122 273.9);
Tailwind
colors: {
  custom: {
    50: '#7270a8',
    500: '#313a83',
    950: '#000000',
  },
}
SCSS
$custom: #313a83;
$custom-light: #7270a8;
$custom-dark: #000000;
JSON
{
  "hex": "#313a83",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 131
  },
  "hsl": {
    "h": 233.415,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38391,
    "c": 0.12185,
    "h": 273.9
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#313A83
secondary
#AEA662
accent
#C753D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313A83

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

Preview Lab → · Contrast checker → · Palette generator →

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