#313499#313499

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

Color values

HEX#313499
RGBrgb(49, 52, 153)
HSLhsl(238, 51%, 40%)
HSVhsv(238, 68%, 60%)
CMYKcmyk(68%, 66%, 0%, 40%)
CIE-LABlab(27.87, 32.23, -55.57)
CIE-LCHlch(27.87, 64.24, 300.11°)
OKLaboklab(39.14% 0.0134 -0.1604)
OKLCHoklch(39.14% 0.161 274.8)
XYZxyz(8.2425, 5.4081, 30.7403)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313499 #999631
analogous
#316899 #313499 #623199
triadic
#313499 #993134 #349931
tetradic
#313499 #993168 #999631 #319962
square
#313499 #993168 #999631 #319962
split-complementary
#313499 #996231 #689931
monochromatic
#13143C #22246B #313499 #4448C3 #7275D2

Accessibility & contrast

On white

10.09
#313499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313499
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313499#FFFFFF#000000##FFFFFF
##3134991.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313499;
/* rgb */ color: rgb(49, 52, 153);
/* oklch */ color: oklch(39.1% 0.161 274.8);
Tailwind
colors: {
  custom: {
    50: '#776cb8',
    500: '#313499',
    950: '#000000',
  },
}
SCSS
$custom: #313499;
$custom-light: #776cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#313499",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 153
  },
  "hsl": {
    "h": 238.269,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39137,
    "c": 0.16092,
    "h": 274.8
  },
  "luminance": 0.05409
}

Semantic roles & 50–950 ramp

primary
#313499
secondary
#BAB86C
accent
#D74DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313499

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

Preview Lab → · Contrast checker → · Palette generator →

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