#313C95#313C95

#313C95 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.145 H 272.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#313C95
RGBrgb(49, 60, 149)
HSLhsl(233, 51%, 39%)
HSVhsv(233, 67%, 58%)
CMYKcmyk(67.1%, 59.7%, 0%, 41.6%)
CIE-LABlab(29.55, 25.55, -50.38)
CIE-LCHlch(29.55, 56.49, 296.89°)
OKLaboklab(40.27% 0.0069 -0.1451)
OKLCHoklch(40.27% 0.145 272.7)
XYZxyz(8.3055, 6.0539, 29.1588)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C95 #958A31
analogous
#316E95 #313C95 #583195
triadic
#313C95 #95313C #3C9531
tetradic
#313C95 #95316E #958A31 #319558
square
#313C95 #95316E #958A31 #319558
split-complementary
#313C95 #955831 #6E9531
monochromatic
#131739 #222967 #313C95 #4250C1 #707BD0

Accessibility & contrast

On white

9.50
#313C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#313C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C95
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C95#FFFFFF#000000##FFFFFF
##313C951.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313c95;
/* rgb */ color: rgb(49, 60, 149);
/* oklch */ color: oklch(40.3% 0.145 272.7);
Tailwind
colors: {
  custom: {
    50: '#7571b5',
    500: '#313c95',
    950: '#000000',
  },
}
SCSS
$custom: #313c95;
$custom-light: #7571b5;
$custom-dark: #000000;
JSON
{
  "hex": "#313c95",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 149
  },
  "hsl": {
    "h": 233.4,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40269,
    "c": 0.14522,
    "h": 272.7
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#313C95
secondary
#B8AF6A
accent
#CB4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313C95

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

Preview Lab → · Contrast checker → · Palette generator →

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