#313F98#313F98

#313F98 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.146 H 271.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#313F98
RGBrgb(49, 63, 152)
HSLhsl(232, 51%, 39%)
HSVhsv(232, 68%, 60%)
CMYKcmyk(67.8%, 58.6%, 0%, 40.4%)
CIE-LABlab(30.58, 24.65, -50.54)
CIE-LCHlch(30.58, 56.23, 296.00°)
OKLaboklab(41.11% 0.0042 -0.1455)
OKLCHoklch(41.11% 0.146 271.7)
XYZxyz(8.7097, 6.4742, 30.4903)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F98 #988A31
analogous
#317398 #313F98 #573198
triadic
#313F98 #98313F #3F9831
tetradic
#313F98 #983173 #988A31 #319857
square
#313F98 #983173 #988A31 #319857
split-complementary
#313F98 #985731 #739831
monochromatic
#13193B #222C6A #313F98 #4455C3 #727FD2

Accessibility & contrast

On white

9.15
#313F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F98
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F98#FFFFFF#000000##FFFFFF
##313F981.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313f98;
/* rgb */ color: rgb(49, 63, 152);
/* oklch */ color: oklch(41.1% 0.146 271.7);
Tailwind
colors: {
  custom: {
    50: '#7673b7',
    500: '#313f98',
    950: '#000000',
  },
}
SCSS
$custom: #313f98;
$custom-light: #7673b7;
$custom-dark: #000000;
JSON
{
  "hex": "#313f98",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 231.845,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41111,
    "c": 0.14555,
    "h": 271.7
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#313F98
secondary
#B9AF6B
accent
#C74DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313F98

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

Preview Lab → · Contrast checker → · Palette generator →

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