#313498#313498

#313498 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.160 H 274.8°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#313498
RGBrgb(49, 52, 152)
HSLhsl(238, 51%, 39%)
HSVhsv(238, 68%, 60%)
CMYKcmyk(67.8%, 65.8%, 0%, 40.4%)
CIE-LABlab(27.78, 31.88, -55.11)
CIE-LCHlch(27.78, 63.66, 300.05°)
OKLaboklab(39.05% 0.0135 -0.159)
OKLCHoklch(39.05% 0.16 274.8)
XYZxyz(8.1602, 5.3752, 30.3072)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313498 #989531
analogous
#316898 #313498 #613198
triadic
#313498 #983134 #349831
tetradic
#313498 #983168 #989531 #319861
square
#313498 #983168 #989531 #319861
split-complementary
#313498 #986131 #689831
monochromatic
#13143B #22246A #313498 #4447C3 #7275D2

Accessibility & contrast

On white

10.12
#313498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313498
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313498#FFFFFF#000000##FFFFFF
##3134981.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313498;
/* rgb */ color: rgb(49, 52, 152);
/* oklch */ color: oklch(39.0% 0.160 274.8);
Tailwind
colors: {
  custom: {
    50: '#776cb7',
    500: '#313498',
    950: '#000000',
  },
}
SCSS
$custom: #313498;
$custom-light: #776cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#313498",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 238.252,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39045,
    "c": 0.15956,
    "h": 274.8
  },
  "luminance": 0.05376
}

Semantic roles & 50–950 ramp

primary
#313498
secondary
#B9B76B
accent
#D74DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313498

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

Preview Lab → · Contrast checker → · Palette generator →

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