#313279#313279

#313279 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 36.0% C 0.118 H 278.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#313279
RGBrgb(49, 50, 121)
HSLhsl(239, 42%, 33%)
HSVhsv(239, 60%, 47%)
CMYKcmyk(59.5%, 58.7%, 0%, 52.5%)
CIE-LABlab(24.68, 22.13, -40.85)
CIE-LCHlch(24.68, 46.46, 298.45°)
OKLaboklab(35.96% 0.0165 -0.1171)
OKLCHoklch(35.96% 0.118 278)
XYZxyz(5.8573, 4.3142, 18.6095)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313279 #797831
analogous
#315679 #313279 #543179
triadic
#313279 #793132 #327931
tetradic
#313279 #793156 #797831 #317954
square
#313279 #793156 #797831 #317954
split-complementary
#313279 #795431 #567931
monochromatic
#0E0E22 #1F204D #313279 #4344A5 #6465C0

Accessibility & contrast

On white

11.27
#313279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#313279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313279
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313279#FFFFFF#000000##FFFFFF
##3132791.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7B
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#064350
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313279;
/* rgb */ color: rgb(49, 50, 121);
/* oklch */ color: oklch(36.0% 0.118 278.0);
Tailwind
colors: {
  custom: {
    50: '#706aa0',
    500: '#313279',
    950: '#000000',
  },
}
SCSS
$custom: #313279;
$custom-light: #706aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#313279",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 121
  },
  "hsl": {
    "h": 239.167,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35958,
    "c": 0.11828,
    "h": 278
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#313279
secondary
#A8A75E
accent
#D056D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #313279

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

Preview Lab → · Contrast checker → · Palette generator →

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