#313199#313199

#313199 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.165 H 275.5°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#313199
RGBrgb(49, 49, 153)
HSLhsl(240, 51%, 40%)
HSVhsv(240, 68%, 60%)
CMYKcmyk(68%, 68%, 0%, 40%)
CIE-LABlab(27.15, 34.14, -56.74)
CIE-LCHlch(27.15, 66.22, 301.03°)
OKLaboklab(38.62% 0.0157 -0.1638)
OKLCHoklch(38.62% 0.165 275.5)
XYZxyz(8.1128, 5.1488, 30.6971)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313199 #999931
analogous
#316599 #313199 #653199
triadic
#313199 #993131 #319931
tetradic
#313199 #993165 #999931 #319965
square
#313199 #993165 #999931 #319965
split-complementary
#313199 #996531 #659931
monochromatic
#13133C #22226B #313199 #4444C3 #7272D2

Accessibility & contrast

On white

10.34
#313199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313199
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313199#FFFFFF#000000##FFFFFF
##3131991.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313199;
/* rgb */ color: rgb(49, 49, 153);
/* oklch */ color: oklch(38.6% 0.165 275.5);
Tailwind
colors: {
  custom: {
    50: '#776ab8',
    500: '#313199',
    950: '#000000',
  },
}
SCSS
$custom: #313199;
$custom-light: #776ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#313199",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 240,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38619,
    "c": 0.16454,
    "h": 275.5
  },
  "luminance": 0.0515
}

Semantic roles & 50–950 ramp

primary
#313199
secondary
#BABA6C
accent
#DB4DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313199

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

Preview Lab → · Contrast checker → · Palette generator →

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