#313398#313398

#313398 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.161 H 275.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#313398
RGBrgb(49, 51, 152)
HSLhsl(239, 51%, 39%)
HSVhsv(239, 68%, 60%)
CMYKcmyk(67.8%, 66.4%, 0%, 40.4%)
CIE-LABlab(27.54, 32.52, -55.50)
CIE-LCHlch(27.54, 64.32, 300.37°)
OKLaboklab(38.87% 0.0143 -0.1601)
OKLCHoklch(38.87% 0.161 275.1)
XYZxyz(8.1161, 5.2869, 30.2924)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313398 #989631
analogous
#316798 #313398 #633198
triadic
#313398 #983133 #339831
tetradic
#313398 #983167 #989631 #319863
square
#313398 #983167 #989631 #319863
split-complementary
#313398 #986331 #679831
monochromatic
#13143B #22236A #313398 #4446C3 #7274D2

Accessibility & contrast

On white

10.21
#313398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313398
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313398#FFFFFF#000000##FFFFFF
##3133981.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313398;
/* rgb */ color: rgb(49, 51, 152);
/* oklch */ color: oklch(38.9% 0.161 275.1);
Tailwind
colors: {
  custom: {
    50: '#776bb7',
    500: '#313398',
    950: '#000000',
  },
}
SCSS
$custom: #313398;
$custom-light: #776bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#313398",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 238.835,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38869,
    "c": 0.16078,
    "h": 275.1
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#313398
secondary
#B9B86B
accent
#D84DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313398

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

Preview Lab → · Contrast checker → · Palette generator →

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