#313B85#313B85

#313B85 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.123 H 273.4°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#313B85
RGBrgb(49, 59, 133)
HSLhsl(233, 46%, 36%)
HSVhsv(233, 63%, 52%)
CMYKcmyk(63.2%, 55.6%, 0%, 47.8%)
CIE-LABlab(28.04, 20.36, -42.95)
CIE-LCHlch(28.04, 47.53, 295.37°)
OKLaboklab(38.76% 0.0074 -0.1232)
OKLCHoklch(38.76% 0.123 273.4)
XYZxyz(7.0628, 5.4738, 22.8701)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B85 #857B31
analogous
#316585 #313B85 #513185
triadic
#313B85 #85313B #3B8531
tetradic
#313B85 #853165 #857B31 #318551
square
#313B85 #853165 #857B31 #318551
split-complementary
#313B85 #855131 #658531
monochromatic
#10132C #212758 #313B85 #414FB2 #6974C8

Accessibility & contrast

On white

10.02
#313B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B85
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B85#FFFFFF#000000##FFFFFF
##313B851.0010.022.0910.02
#FFFFFF10.021.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094688
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313b85;
/* rgb */ color: rgb(49, 59, 133);
/* oklch */ color: oklch(38.8% 0.123 273.4);
Tailwind
colors: {
  custom: {
    50: '#7270a9',
    500: '#313b85',
    950: '#000000',
  },
}
SCSS
$custom: #313b85;
$custom-light: #7270a9;
$custom-dark: #000000;
JSON
{
  "hex": "#313b85",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 133
  },
  "hsl": {
    "h": 232.857,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38756,
    "c": 0.12343,
    "h": 273.4
  },
  "luminance": 0.05474
}

Semantic roles & 50–950 ramp

primary
#313B85
secondary
#AFA663
accent
#C652D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313B85

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

Preview Lab → · Contrast checker → · Palette generator →

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