#313294#313294

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

Color values

HEX#313294
RGBrgb(49, 50, 148)
HSLhsl(239, 50%, 39%)
HSVhsv(239, 67%, 58%)
CMYKcmyk(66.9%, 66.2%, 0%, 42%)
CIE-LABlab(26.94, 31.75, -54.03)
CIE-LCHlch(26.94, 62.66, 300.44°)
OKLaboklab(38.32% 0.0154 -0.1558)
OKLCHoklch(38.32% 0.157 275.7)
XYZxyz(7.7508, 5.0716, 28.5817)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313294 #949331
analogous
#316394 #313294 #613194
triadic
#313294 #943132 #329431
tetradic
#313294 #943163 #949331 #319461
square
#313294 #943163 #949331 #319461
split-complementary
#313294 #946131 #639431
monochromatic
#131338 #222266 #313294 #4243C0 #7071D0

Accessibility & contrast

On white

10.42
#313294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313294
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313294#FFFFFF#000000##FFFFFF
##3132941.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313294;
/* rgb */ color: rgb(49, 50, 148);
/* oklch */ color: oklch(38.3% 0.157 275.7);
Tailwind
colors: {
  custom: {
    50: '#766ab4',
    500: '#313294',
    950: '#000000',
  },
}
SCSS
$custom: #313294;
$custom-light: #766ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#313294",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 148
  },
  "hsl": {
    "h": 239.394,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38322,
    "c": 0.1566,
    "h": 275.7
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#313294
secondary
#B7B769
accent
#D84EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313294

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

Preview Lab → · Contrast checker → · Palette generator →

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