#313091#313091

#313091 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.155 H 276.4°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#313091
RGBrgb(49, 48, 145)
HSLhsl(241, 50%, 38%)
HSVhsv(241, 67%, 57%)
CMYKcmyk(66.2%, 66.9%, 0%, 43.1%)
CIE-LABlab(26.19, 31.97, -53.41)
CIE-LCHlch(26.19, 62.24, 300.91°)
OKLaboklab(37.69% 0.0173 -0.154)
OKLCHoklch(37.69% 0.155 276.4)
XYZxyz(7.4327, 4.8106, 27.3194)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313091 #909130
analogous
#305F91 #313091 #623091
triadic
#313091 #913130 #309131
tetradic
#313091 #91305F #909130 #309162
square
#313091 #91305F #909130 #309162
split-complementary
#313091 #916230 #5F9130
monochromatic
#121235 #212163 #313091 #413FBF #6E6DCF

Accessibility & contrast

On white

10.70
#313091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#313091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313091
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313091#FFFFFF#000000##FFFFFF
##3130911.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313091;
/* rgb */ color: rgb(49, 48, 145);
/* oklch */ color: oklch(37.7% 0.155 276.4);
Tailwind
colors: {
  custom: {
    50: '#7669b2',
    500: '#313091',
    950: '#000000',
  },
}
SCSS
$custom: #313091;
$custom-light: #7669b2;
$custom-dark: #000000;
JSON
{
  "hex": "#313091",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 145
  },
  "hsl": {
    "h": 240.619,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37693,
    "c": 0.155,
    "h": 276.4
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#313091
secondary
#B5B667
accent
#DA4ED8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313091

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

Preview Lab → · Contrast checker → · Palette generator →

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