#313E9F#313E9F

#313E9F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.157 H 271.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#313E9F
RGBrgb(49, 62, 159)
HSLhsl(233, 53%, 41%)
HSVhsv(233, 69%, 62%)
CMYKcmyk(69.2%, 61%, 0%, 37.6%)
CIE-LABlab(30.88, 27.88, -54.30)
CIE-LCHlch(30.88, 61.04, 297.18°)
OKLaboklab(41.51% 0.0051 -0.1565)
OKLCHoklch(41.51% 0.157 271.9)
XYZxyz(9.2451, 6.6005, 33.5810)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E9F #9F9231
analogous
#31759F #313E9F #5B319F
triadic
#313E9F #9F313E #3E9F31
tetradic
#313E9F #9F3175 #9F9231 #319F5B
square
#313E9F #9F3175 #9F9231 #319F5B
split-complementary
#313E9F #9F5B31 #759F31
monochromatic
#141A41 #232C70 #313E9F #4756C6 #7681D5

Accessibility & contrast

On white

9.05
#313E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#313E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E9F
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E9F#FFFFFF#000000##FFFFFF
##313E9F1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313e9f;
/* rgb */ color: rgb(49, 62, 159);
/* oklch */ color: oklch(41.5% 0.157 271.9);
Tailwind
colors: {
  custom: {
    50: '#7773bc',
    500: '#313e9f',
    950: '#000000',
  },
}
SCSS
$custom: #313e9f;
$custom-light: #7773bc;
$custom-dark: #000000;
JSON
{
  "hex": "#313e9f",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 159
  },
  "hsl": {
    "h": 232.909,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41511,
    "c": 0.15663,
    "h": 271.9
  },
  "luminance": 0.06601
}

Semantic roles & 50–950 ramp

primary
#313E9F
secondary
#BDB46F
accent
#CB4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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