#27316B#27316B

#27316B is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.101 H 272.5°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#27316B
RGBrgb(39, 49, 107)
HSLhsl(231, 47%, 29%)
HSVhsv(231, 64%, 42%)
CMYKcmyk(63.6%, 54.2%, 0%, 58%)
CIE-LABlab(22.62, 15.61, -35.27)
CIE-LCHlch(22.62, 38.56, 293.87°)
OKLaboklab(33.88% 0.0044 -0.101)
OKLCHoklch(33.88% 0.101 272.5)
XYZxyz(4.5880, 3.6891, 14.3774)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27316B #6B6127
analogous
#27536B #27316B #3F276B
triadic
#27316B #6B2731 #316B27
tetradic
#27316B #6B2753 #6B6127 #276B3F
square
#27316B #6B2753 #6B6127 #276B3F
split-complementary
#27316B #6B3F27 #536B27
monochromatic
#080A16 #171C3E #27316B #374698 #4E5EBE

Accessibility & contrast

On white

12.08
#27316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#27316B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27316B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27316B#FFFFFF#000000##FFFFFF
##27316B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10396D
Deuteranopia (green-blind)
#01336A
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #27316b;
/* rgb */ color: rgb(39, 49, 107);
/* oklch */ color: oklch(33.9% 0.101 272.5);
Tailwind
colors: {
  custom: {
    50: '#686896',
    500: '#27316b',
    950: '#000000',
  },
}
SCSS
$custom: #27316b;
$custom-light: #686896;
$custom-dark: #000000;
JSON
{
  "hex": "#27316b",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 231.176,
    "s": 46.575,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33883,
    "c": 0.10109,
    "h": 272.5
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#27316B
secondary
#9E9250
accent
#C352D6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #27316B

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

Preview Lab → · Contrast checker → · Palette generator →

#27316B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva