#313488#313488

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

Color values

HEX#313488
RGBrgb(49, 52, 136)
HSLhsl(238, 47%, 36%)
HSVhsv(238, 64%, 53%)
CMYKcmyk(64%, 61.8%, 0%, 46.7%)
CIE-LABlab(26.41, 26.16, -47.47)
CIE-LCHlch(26.41, 54.20, 298.86°)
OKLaboklab(37.61% 0.0144 -0.1366)
OKLCHoklch(37.61% 0.137 276)
XYZxyz(6.9371, 4.8860, 23.8653)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313488 #888531
analogous
#316088 #313488 #5A3188
triadic
#313488 #883134 #348831
tetradic
#313488 #883160 #888531 #31885A
square
#313488 #883160 #888531 #31885A
split-complementary
#313488 #885A31 #608831
monochromatic
#11122E #21235B #313488 #4145B5 #6A6DC9

Accessibility & contrast

On white

10.62
#313488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313488 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313488
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313488#FFFFFF#000000##FFFFFF
##3134881.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313488;
/* rgb */ color: rgb(49, 52, 136);
/* oklch */ color: oklch(37.6% 0.137 276.0);
Tailwind
colors: {
  custom: {
    50: '#736bab',
    500: '#313488',
    950: '#000000',
  },
}
SCSS
$custom: #313488;
$custom-light: #736bab;
$custom-dark: #000000;
JSON
{
  "hex": "#313488",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 136
  },
  "hsl": {
    "h": 237.931,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37612,
    "c": 0.13734,
    "h": 276
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

primary
#313488
secondary
#B1AE64
accent
#D251D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313488

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

Preview Lab → · Contrast checker → · Palette generator →

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