#313095#313095

#313095 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.160 H 276.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#313095
RGBrgb(49, 48, 149)
HSLhsl(241, 51%, 39%)
HSVhsv(241, 68%, 58%)
CMYKcmyk(67.1%, 67.8%, 0%, 41.6%)
CIE-LABlab(26.55, 33.37, -55.27)
CIE-LCHlch(26.55, 64.57, 301.12°)
OKLaboklab(38.07% 0.0169 -0.1595)
OKLCHoklch(38.07% 0.16 276)
XYZxyz(7.7466, 4.9361, 28.9725)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313095 #949530
analogous
#306195 #313095 #633095
triadic
#313095 #953130 #309531
tetradic
#313095 #953061 #949530 #309563
square
#313095 #953061 #949530 #309563
split-complementary
#313095 #956330 #619530
monochromatic
#131238 #222167 #313095 #4241C2 #706FD1

Accessibility & contrast

On white

10.57
#313095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#313095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313095
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313095#FFFFFF#000000##FFFFFF
##3130951.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313095;
/* rgb */ color: rgb(49, 48, 149);
/* oklch */ color: oklch(38.1% 0.160 276.0);
Tailwind
colors: {
  custom: {
    50: '#7669b5',
    500: '#313095',
    950: '#000000',
  },
}
SCSS
$custom: #313095;
$custom-light: #7669b5;
$custom-dark: #000000;
JSON
{
  "hex": "#313095",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 240.594,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38069,
    "c": 0.16039,
    "h": 276
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#313095
secondary
#B7B869
accent
#DB4DD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313095

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

Preview Lab → · Contrast checker → · Palette generator →

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