#313397#313397

#313397 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.159 H 275.2°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#313397
RGBrgb(49, 51, 151)
HSLhsl(239, 51%, 39%)
HSVhsv(239, 68%, 59%)
CMYKcmyk(67.5%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.45, 32.16, -55.03)
CIE-LCHlch(27.45, 63.74, 300.30°)
OKLaboklab(38.78% 0.0144 -0.1588)
OKLCHoklch(38.78% 0.159 275.2)
XYZxyz(8.0345, 5.2543, 29.8629)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313397 #979531
analogous
#316697 #313397 #623197
triadic
#313397 #973133 #339731
tetradic
#313397 #973166 #979531 #319762
square
#313397 #973166 #979531 #319762
split-complementary
#313397 #976231 #669731
monochromatic
#13143B #222369 #313397 #4346C2 #7173D1

Accessibility & contrast

On white

10.24
#313397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313397
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313397#FFFFFF#000000##FFFFFF
##3133971.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313397;
/* rgb */ color: rgb(49, 51, 151);
/* oklch */ color: oklch(38.8% 0.159 275.2);
Tailwind
colors: {
  custom: {
    50: '#776bb6',
    500: '#313397',
    950: '#000000',
  },
}
SCSS
$custom: #313397;
$custom-light: #776bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313397",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 238.824,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38776,
    "c": 0.15944,
    "h": 275.2
  },
  "luminance": 0.05255
}

Semantic roles & 50–950 ramp

primary
#313397
secondary
#B9B76B
accent
#D84DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313397

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

Preview Lab → · Contrast checker → · Palette generator →

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