#313299#313299

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

Color values

HEX#313299
RGBrgb(49, 50, 153)
HSLhsl(239, 51%, 40%)
HSVhsv(239, 68%, 60%)
CMYKcmyk(68%, 67.3%, 0%, 40%)
CIE-LABlab(27.39, 33.51, -56.35)
CIE-LCHlch(27.39, 65.56, 300.73°)
OKLaboklab(38.79% 0.0149 -0.1627)
OKLCHoklch(38.79% 0.163 275.2)
XYZxyz(8.1551, 5.2334, 30.7112)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313299 #999831
analogous
#316699 #313299 #643199
triadic
#313299 #993132 #329931
tetradic
#313299 #993166 #999831 #319964
square
#313299 #993166 #999831 #319964
split-complementary
#313299 #996431 #669931
monochromatic
#13143C #22236B #313299 #4445C3 #7273D2

Accessibility & contrast

On white

10.26
#313299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313299
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313299#FFFFFF#000000##FFFFFF
##3132991.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313299;
/* rgb */ color: rgb(49, 50, 153);
/* oklch */ color: oklch(38.8% 0.163 275.2);
Tailwind
colors: {
  custom: {
    50: '#776ab8',
    500: '#313299',
    950: '#000000',
  },
}
SCSS
$custom: #313299;
$custom-light: #776ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#313299",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 239.423,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38789,
    "c": 0.16334,
    "h": 275.2
  },
  "luminance": 0.05234
}

Semantic roles & 50–950 ramp

primary
#313299
secondary
#BAB96C
accent
#DA4DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313299

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

Preview Lab → · Contrast checker → · Palette generator →

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