#313F99#313F99

#313F99 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.147 H 271.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#313F99
RGBrgb(49, 63, 153)
HSLhsl(232, 51%, 40%)
HSVhsv(232, 68%, 60%)
CMYKcmyk(68%, 58.8%, 0%, 40%)
CIE-LABlab(30.66, 25.02, -51.02)
CIE-LCHlch(30.66, 56.82, 296.12°)
OKLaboklab(41.2% 0.0042 -0.1469)
OKLCHoklch(41.2% 0.147 271.6)
XYZxyz(8.7920, 6.5071, 30.9235)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F99 #998B31
analogous
#317399 #313F99 #573199
triadic
#313F99 #99313F #3F9931
tetradic
#313F99 #993173 #998B31 #319957
square
#313F99 #993173 #998B31 #319957
split-complementary
#313F99 #995731 #739931
monochromatic
#13193C #222C6B #313F99 #4455C3 #727FD2

Accessibility & contrast

On white

9.12
#313F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#313F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F99
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F99#FFFFFF#000000##FFFFFF
##313F991.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313f99;
/* rgb */ color: rgb(49, 63, 153);
/* oklch */ color: oklch(41.2% 0.147 271.6);
Tailwind
colors: {
  custom: {
    50: '#7673b8',
    500: '#313f99',
    950: '#000000',
  },
}
SCSS
$custom: #313f99;
$custom-light: #7673b8;
$custom-dark: #000000;
JSON
{
  "hex": "#313f99",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 231.923,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41195,
    "c": 0.14696,
    "h": 271.6
  },
  "luminance": 0.06508
}

Semantic roles & 50–950 ramp

primary
#313F99
secondary
#BAAF6C
accent
#C84DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313F99

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

Preview Lab → · Contrast checker → · Palette generator →

#313F99 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva