#313295#313295

#313295 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.158 H 275.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#313295
RGBrgb(49, 50, 149)
HSLhsl(239, 51%, 39%)
HSVhsv(239, 67%, 58%)
CMYKcmyk(67.1%, 66.4%, 0%, 41.6%)
CIE-LABlab(27.03, 32.10, -54.49)
CIE-LCHlch(27.03, 63.25, 300.50°)
OKLaboklab(38.41% 0.0153 -0.1572)
OKLCHoklch(38.41% 0.158 275.6)
XYZxyz(7.8303, 5.1034, 29.0004)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313295 #959431
analogous
#316495 #313295 #623195
triadic
#313295 #953132 #329531
tetradic
#313295 #953164 #959431 #319562
square
#313295 #953164 #959431 #319562
split-complementary
#313295 #956231 #649531
monochromatic
#131339 #222367 #313295 #4244C1 #7071D0

Accessibility & contrast

On white

10.39
#313295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313295
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313295#FFFFFF#000000##FFFFFF
##3132951.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313295;
/* rgb */ color: rgb(49, 50, 149);
/* oklch */ color: oklch(38.4% 0.158 275.6);
Tailwind
colors: {
  custom: {
    50: '#766ab5',
    500: '#313295',
    950: '#000000',
  },
}
SCSS
$custom: #313295;
$custom-light: #766ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#313295",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 149
  },
  "hsl": {
    "h": 239.4,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38414,
    "c": 0.15796,
    "h": 275.6
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#313295
secondary
#B8B76A
accent
#D94EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313295

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

Preview Lab → · Contrast checker → · Palette generator →

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