#315286#315286

#315286 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.095 H 259.1°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#315286
RGBrgb(49, 82, 134)
HSLhsl(217, 46%, 36%)
HSVhsv(217, 63%, 53%)
CMYKcmyk(63.4%, 38.8%, 0%, 47.5%)
CIE-LABlab(34.82, 5.30, -32.72)
CIE-LCHlch(34.82, 33.15, 279.20°)
OKLaboklab(43.96% -0.0178 -0.0929)
OKLCHoklch(43.96% 0.095 259.1)
XYZxyz(8.5855, 8.4080, 23.7201)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315286 #866531
analogous
#317C86 #315286 #3A3186
triadic
#315286 #863152 #528631
tetradic
#315286 #86317C #866531 #31863A
square
#315286 #86317C #866531 #31863A
split-complementary
#315286 #863A31 #7C8631
monochromatic
#101B2C #213759 #315286 #416DB3 #698EC8

Accessibility & contrast

On white

7.83
#315286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#315286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315286
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315286#FFFFFF#000000##FFFFFF
##3152861.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5688
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#005E65
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #315286;
/* rgb */ color: rgb(49, 82, 134);
/* oklch */ color: oklch(44.0% 0.095 259.1);
Tailwind
colors: {
  custom: {
    50: '#7182a9',
    500: '#315286',
    950: '#000000',
  },
}
SCSS
$custom: #315286;
$custom-light: #7182a9;
$custom-dark: #000000;
JSON
{
  "hex": "#315286",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 134
  },
  "hsl": {
    "h": 216.706,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43958,
    "c": 0.09456,
    "h": 259.1
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#315286
secondary
#B09263
accent
#A352D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #315286

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

Preview Lab → · Contrast checker → · Palette generator →

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