#313595#313595

#313595 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.154 H 274.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#313595
RGBrgb(49, 53, 149)
HSLhsl(238, 51%, 39%)
HSVhsv(238, 67%, 58%)
CMYKcmyk(67.1%, 64.4%, 0%, 41.6%)
CIE-LABlab(27.76, 30.16, -53.30)
CIE-LCHlch(27.76, 61.24, 299.51°)
OKLaboklab(38.95% 0.0129 -0.1537)
OKLCHoklch(38.95% 0.154 274.8)
XYZxyz(7.9628, 5.3684, 29.0445)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313595 #959131
analogous
#316795 #313595 #5F3195
triadic
#313595 #953135 #359531
tetradic
#313595 #953167 #959131 #31955F
square
#313595 #953167 #959131 #31955F
split-complementary
#313595 #955F31 #679531
monochromatic
#131439 #222567 #313595 #4247C1 #7074D0

Accessibility & contrast

On white

10.13
#313595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313595
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313595#FFFFFF#000000##FFFFFF
##3135951.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313595;
/* rgb */ color: rgb(49, 53, 149);
/* oklch */ color: oklch(38.9% 0.154 274.8);
Tailwind
colors: {
  custom: {
    50: '#766cb5',
    500: '#313595',
    950: '#000000',
  },
}
SCSS
$custom: #313595;
$custom-light: #766cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#313595",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 149
  },
  "hsl": {
    "h": 237.6,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38949,
    "c": 0.15422,
    "h": 274.8
  },
  "luminance": 0.05369
}

Semantic roles & 50–950 ramp

primary
#313595
secondary
#B8B56A
accent
#D44EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313595

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

Preview Lab → · Contrast checker → · Palette generator →

#313595 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva