#313F94#313F94

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

Color values

HEX#313F94
RGBrgb(49, 63, 148)
HSLhsl(232, 50%, 39%)
HSVhsv(232, 67%, 58%)
CMYKcmyk(66.9%, 57.4%, 0%, 42%)
CIE-LABlab(30.27, 23.18, -48.60)
CIE-LCHlch(30.27, 53.85, 295.50°)
OKLaboklab(40.78% 0.0041 -0.1398)
OKLCHoklch(40.78% 0.14 271.7)
XYZxyz(8.3876, 6.3453, 28.7940)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F94 #948631
analogous
#317094 #313F94 #543194
triadic
#313F94 #94313F #3F9431
tetradic
#313F94 #943170 #948631 #319454
square
#313F94 #943170 #948631 #319454
split-complementary
#313F94 #945431 #709431
monochromatic
#131838 #222B66 #313F94 #4254C0 #707DD0

Accessibility & contrast

On white

9.25
#313F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#313F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F94
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F94#FFFFFF#000000##FFFFFF
##313F941.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313f94;
/* rgb */ color: rgb(49, 63, 148);
/* oklch */ color: oklch(40.8% 0.140 271.7);
Tailwind
colors: {
  custom: {
    50: '#7573b4',
    500: '#313f94',
    950: '#000000',
  },
}
SCSS
$custom: #313f94;
$custom-light: #7573b4;
$custom-dark: #000000;
JSON
{
  "hex": "#313f94",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 148
  },
  "hsl": {
    "h": 231.515,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40781,
    "c": 0.13985,
    "h": 271.7
  },
  "luminance": 0.06346
}

Semantic roles & 50–950 ramp

primary
#313F94
secondary
#B7AC69
accent
#C64EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313F94

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

Preview Lab → · Contrast checker → · Palette generator →

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