#313A8F#313A8F

#313A8F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.139 H 273.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#313A8F
RGBrgb(49, 58, 143)
HSLhsl(234, 49%, 38%)
HSVhsv(234, 66%, 56%)
CMYKcmyk(65.7%, 59.4%, 0%, 43.9%)
CIE-LABlab(28.54, 24.69, -48.33)
CIE-LCHlch(28.54, 54.28, 297.06°)
OKLaboklab(39.37% 0.0087 -0.1391)
OKLCHoklch(39.37% 0.139 273.6)
XYZxyz(7.7360, 5.6616, 26.6664)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A8F #8F8631
analogous
#31698F #313A8F #57318F
triadic
#313A8F #8F313A #3A8F31
tetradic
#313A8F #8F3169 #8F8631 #318F57
square
#313A8F #8F3169 #8F8631 #318F57
split-complementary
#313A8F #8F5731 #698F31
monochromatic
#121534 #212861 #313A8F #414CBD #6D76CD

Accessibility & contrast

On white

9.85
#313A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A8F
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A8F#FFFFFF#000000##FFFFFF
##313A8F1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313a8f;
/* rgb */ color: rgb(49, 58, 143);
/* oklch */ color: oklch(39.4% 0.139 273.6);
Tailwind
colors: {
  custom: {
    50: '#7470b0',
    500: '#313a8f',
    950: '#000000',
  },
}
SCSS
$custom: #313a8f;
$custom-light: #7470b0;
$custom-dark: #000000;
JSON
{
  "hex": "#313a8f",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 234.255,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39371,
    "c": 0.13933,
    "h": 273.6
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#313A8F
secondary
#B5AD67
accent
#CB4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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