#313195#313195

#313195 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.159 H 275.8°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#313195
RGBrgb(49, 49, 149)
HSLhsl(240, 51%, 39%)
HSVhsv(240, 67%, 58%)
CMYKcmyk(67.1%, 67.1%, 0%, 41.6%)
CIE-LABlab(26.79, 32.74, -54.89)
CIE-LCHlch(26.79, 63.91, 300.81°)
OKLaboklab(38.24% 0.0161 -0.1584)
OKLCHoklch(38.24% 0.159 275.8)
XYZxyz(7.7880, 5.0188, 28.9863)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313195 #959531
analogous
#316395 #313195 #633195
triadic
#313195 #953131 #319531
tetradic
#313195 #953163 #959531 #319563
square
#313195 #953163 #959531 #319563
split-complementary
#313195 #956331 #639531
monochromatic
#131339 #222267 #313195 #4242C1 #7070D0

Accessibility & contrast

On white

10.48
#313195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313195
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313195#FFFFFF#000000##FFFFFF
##3131951.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313195;
/* rgb */ color: rgb(49, 49, 149);
/* oklch */ color: oklch(38.2% 0.159 275.8);
Tailwind
colors: {
  custom: {
    50: '#7669b5',
    500: '#313195',
    950: '#000000',
  },
}
SCSS
$custom: #313195;
$custom-light: #7669b5;
$custom-dark: #000000;
JSON
{
  "hex": "#313195",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 149
  },
  "hsl": {
    "h": 240,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38241,
    "c": 0.15918,
    "h": 275.8
  },
  "luminance": 0.0502
}

Semantic roles & 50–950 ramp

primary
#313195
secondary
#B8B86A
accent
#DA4EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313195

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

Preview Lab → · Contrast checker → · Palette generator →

#313195 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva