#313A94#313A94

#313A94 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.146 H 273.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#313A94
RGBrgb(49, 58, 148)
HSLhsl(235, 50%, 39%)
HSVhsv(235, 67%, 58%)
CMYKcmyk(66.9%, 60.8%, 0%, 42%)
CIE-LABlab(28.94, 26.51, -50.75)
CIE-LCHlch(28.94, 57.26, 297.58°)
OKLaboklab(39.8% 0.0086 -0.1462)
OKLCHoklch(39.8% 0.146 273.4)
XYZxyz(8.1232, 5.8165, 28.7058)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A94 #948B31
analogous
#316B94 #313A94 #593194
triadic
#313A94 #94313A #3A9431
tetradic
#313A94 #94316B #948B31 #319459
square
#313A94 #94316B #948B31 #319459
split-complementary
#313A94 #945931 #6B9431
monochromatic
#131638 #222866 #313A94 #424DC0 #7079D0

Accessibility & contrast

On white

9.71
#313A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#313A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A94
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A94#FFFFFF#000000##FFFFFF
##313A941.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004997
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313a94;
/* rgb */ color: rgb(49, 58, 148);
/* oklch */ color: oklch(39.8% 0.146 273.4);
Tailwind
colors: {
  custom: {
    50: '#7570b4',
    500: '#313a94',
    950: '#000000',
  },
}
SCSS
$custom: #313a94;
$custom-light: #7570b4;
$custom-dark: #000000;
JSON
{
  "hex": "#313a94",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 148
  },
  "hsl": {
    "h": 234.545,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39796,
    "c": 0.14643,
    "h": 273.4
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

primary
#313A94
secondary
#B7B069
accent
#CD4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313A94

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

Preview Lab → · Contrast checker → · Palette generator →

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