#313494#313494

#313494 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.154 H 275.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#313494
RGBrgb(49, 52, 148)
HSLhsl(238, 50%, 39%)
HSVhsv(238, 67%, 58%)
CMYKcmyk(66.9%, 64.9%, 0%, 42%)
CIE-LABlab(27.43, 30.46, -53.23)
CIE-LCHlch(27.43, 61.33, 299.78°)
OKLaboklab(38.68% 0.0138 -0.1535)
OKLCHoklch(38.68% 0.154 275.1)
XYZxyz(7.8381, 5.2464, 28.6108)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313494 #949131
analogous
#316594 #313494 #5F3194
triadic
#313494 #943134 #349431
tetradic
#313494 #943165 #949131 #31945F
square
#313494 #943165 #949131 #31945F
split-complementary
#313494 #945F31 #659431
monochromatic
#131438 #222466 #313494 #4246C0 #7073D0

Accessibility & contrast

On white

10.25
#313494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313494
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313494#FFFFFF#000000##FFFFFF
##3134941.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313494;
/* rgb */ color: rgb(49, 52, 148);
/* oklch */ color: oklch(38.7% 0.154 275.1);
Tailwind
colors: {
  custom: {
    50: '#766bb4',
    500: '#313494',
    950: '#000000',
  },
}
SCSS
$custom: #313494;
$custom-light: #766bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#313494",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 148
  },
  "hsl": {
    "h": 238.182,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38678,
    "c": 0.15411,
    "h": 275.1
  },
  "luminance": 0.05247
}

Semantic roles & 50–950 ramp

primary
#313494
secondary
#B7B569
accent
#D64EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313494

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

Preview Lab → · Contrast checker → · Palette generator →

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