#313099#313099

#313099 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.166 H 275.7°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#313099
RGBrgb(49, 48, 153)
HSLhsl(241, 52%, 39%)
HSVhsv(241, 69%, 60%)
CMYKcmyk(68%, 68.6%, 0%, 40%)
CIE-LABlab(26.92, 34.76, -57.12)
CIE-LCHlch(26.92, 66.87, 301.33°)
OKLaboklab(38.45% 0.0164 -0.1649)
OKLCHoklch(38.45% 0.166 275.7)
XYZxyz(8.0715, 5.0661, 30.6833)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313099 #989930
analogous
#306499 #313099 #653099
triadic
#313099 #993130 #309931
tetradic
#313099 #993064 #989930 #309965
square
#313099 #993064 #989930 #309965
split-complementary
#313099 #996530 #649930
monochromatic
#13133C #22216A #313099 #4442C4 #7271D2

Accessibility & contrast

On white

10.43
#313099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313099
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313099#FFFFFF#000000##FFFFFF
##3130991.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313099;
/* rgb */ color: rgb(49, 48, 153);
/* oklch */ color: oklch(38.5% 0.166 275.7);
Tailwind
colors: {
  custom: {
    50: '#7769b8',
    500: '#313099',
    950: '#000000',
  },
}
SCSS
$custom: #313099;
$custom-light: #7769b8;
$custom-dark: #000000;
JSON
{
  "hex": "#313099",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 153
  },
  "hsl": {
    "h": 240.571,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38451,
    "c": 0.16572,
    "h": 275.7
  },
  "luminance": 0.05067
}

Semantic roles & 50–950 ramp

primary
#313099
secondary
#B9BA6B
accent
#DC4CDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313099

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

Preview Lab → · Contrast checker → · Palette generator →

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