#313D99#313D99

#313D99 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.150 H 272.3°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#313D99
RGBrgb(49, 61, 153)
HSLhsl(233, 51%, 40%)
HSVhsv(233, 68%, 60%)
CMYKcmyk(68%, 60.1%, 0%, 40%)
CIE-LABlab(30.13, 26.35, -51.88)
CIE-LCHlch(30.13, 58.18, 296.93°)
OKLaboklab(40.8% 0.006 -0.1494)
OKLCHoklch(40.8% 0.15 272.3)
XYZxyz(8.6832, 6.2896, 30.8872)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D99 #998D31
analogous
#317199 #313D99 #593199
triadic
#313D99 #99313D #3D9931
tetradic
#313D99 #993171 #998D31 #319959
square
#313D99 #993171 #998D31 #319959
split-complementary
#313D99 #995931 #719931
monochromatic
#13183C #222B6B #313D99 #4453C3 #727DD2

Accessibility & contrast

On white

9.30
#313D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#313D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D99
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D99#FFFFFF#000000##FFFFFF
##313D991.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313d99;
/* rgb */ color: rgb(49, 61, 153);
/* oklch */ color: oklch(40.8% 0.150 272.3);
Tailwind
colors: {
  custom: {
    50: '#7672b8',
    500: '#313d99',
    950: '#000000',
  },
}
SCSS
$custom: #313d99;
$custom-light: #7672b8;
$custom-dark: #000000;
JSON
{
  "hex": "#313d99",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 153
  },
  "hsl": {
    "h": 233.077,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40804,
    "c": 0.14956,
    "h": 272.3
  },
  "luminance": 0.0629
}

Semantic roles & 50–950 ramp

primary
#313D99
secondary
#BAB16C
accent
#CB4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #313D99

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

Preview Lab → · Contrast checker → · Palette generator →

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