#313180#313180

#313180 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.130 H 277.8°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#313180
RGBrgb(49, 49, 128)
HSLhsl(240, 45%, 35%)
HSVhsv(240, 62%, 50%)
CMYKcmyk(61.7%, 61.7%, 0%, 49.8%)
CIE-LABlab(24.98, 25.30, -44.79)
CIE-LCHlch(24.98, 51.45, 299.46°)
OKLaboklab(36.35% 0.0176 -0.1287)
OKLCHoklch(36.35% 0.13 277.8)
XYZxyz(6.2600, 4.4076, 20.9388)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313180 #808031
analogous
#315980 #313180 #593180
triadic
#313180 #803131 #318031
tetradic
#313180 #803159 #808031 #318059
square
#313180 #803159 #808031 #318059
split-complementary
#313180 #805931 #598031
monochromatic
#0F0F27 #202054 #313180 #4242AC #6767C5

Accessibility & contrast

On white

11.16
#313180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#313180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313180
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313180#FFFFFF#000000##FFFFFF
##3131801.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313180;
/* rgb */ color: rgb(49, 49, 128);
/* oklch */ color: oklch(36.4% 0.130 277.8);
Tailwind
colors: {
  custom: {
    50: '#7269a5',
    500: '#313180',
    950: '#000000',
  },
}
SCSS
$custom: #313180;
$custom-light: #7269a5;
$custom-dark: #000000;
JSON
{
  "hex": "#313180",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 128
  },
  "hsl": {
    "h": 240,
    "s": 44.633,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3635,
    "c": 0.12992,
    "h": 277.8
  },
  "luminance": 0.04408
}

Semantic roles & 50–950 ramp

primary
#313180
secondary
#ACAC61
accent
#D453D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #313180

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

Preview Lab → · Contrast checker → · Palette generator →

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