#313B83#313B83

#313B83 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.120 H 273.4°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#313B83
RGBrgb(49, 59, 131)
HSLhsl(233, 46%, 35%)
HSVhsv(233, 63%, 51%)
CMYKcmyk(62.6%, 55%, 0%, 48.6%)
CIE-LABlab(27.90, 19.63, -41.94)
CIE-LCHlch(27.90, 46.31, 295.08°)
OKLaboklab(38.6% 0.0072 -0.1202)
OKLCHoklch(38.6% 0.12 273.4)
XYZxyz(6.9260, 5.4190, 22.1493)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B83 #837931
analogous
#316483 #313B83 #503183
triadic
#313B83 #83313B #3B8331
tetradic
#313B83 #833164 #837931 #318350
square
#313B83 #833164 #837931 #318350
split-complementary
#313B83 #835031 #648331
monochromatic
#10132A #202756 #313B83 #424FB0 #6873C6

Accessibility & contrast

On white

10.08
#313B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B83
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B83#FFFFFF#000000##FFFFFF
##313B831.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4686
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313b83;
/* rgb */ color: rgb(49, 59, 131);
/* oklch */ color: oklch(38.6% 0.120 273.4);
Tailwind
colors: {
  custom: {
    50: '#7270a8',
    500: '#313b83',
    950: '#000000',
  },
}
SCSS
$custom: #313b83;
$custom-light: #7270a8;
$custom-dark: #000000;
JSON
{
  "hex": "#313b83",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 131
  },
  "hsl": {
    "h": 232.683,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38599,
    "c": 0.12046,
    "h": 273.4
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#313B83
secondary
#AEA562
accent
#C553D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313B83

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

Preview Lab → · Contrast checker → · Palette generator →

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