#313194#313194

#313194 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.158 H 275.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#313194
RGBrgb(49, 49, 148)
HSLhsl(240, 50%, 39%)
HSVhsv(240, 67%, 58%)
CMYKcmyk(66.9%, 66.9%, 0%, 42%)
CIE-LABlab(26.70, 32.39, -54.42)
CIE-LCHlch(26.70, 63.33, 300.76°)
OKLaboklab(38.15% 0.0162 -0.157)
OKLCHoklch(38.15% 0.158 275.9)
XYZxyz(7.7085, 4.9870, 28.5676)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313194 #949431
analogous
#316294 #313194 #623194
triadic
#313194 #943131 #319431
tetradic
#313194 #943162 #949431 #319462
square
#313194 #943162 #949431 #319462
split-complementary
#313194 #946231 #629431
monochromatic
#131338 #222266 #313194 #4242C0 #7070D0

Accessibility & contrast

On white

10.51
#313194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313194
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313194#FFFFFF#000000##FFFFFF
##3131941.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313194;
/* rgb */ color: rgb(49, 49, 148);
/* oklch */ color: oklch(38.1% 0.158 275.9);
Tailwind
colors: {
  custom: {
    50: '#7669b4',
    500: '#313194',
    950: '#000000',
  },
}
SCSS
$custom: #313194;
$custom-light: #7669b4;
$custom-dark: #000000;
JSON
{
  "hex": "#313194",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 148
  },
  "hsl": {
    "h": 240,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38147,
    "c": 0.15784,
    "h": 275.9
  },
  "luminance": 0.04988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313194

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

Preview Lab → · Contrast checker → · Palette generator →

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