#27316C#27316C

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

Color values

HEX#27316C
RGBrgb(39, 49, 108)
HSLhsl(231, 47%, 29%)
HSVhsv(231, 64%, 42%)
CMYKcmyk(63.9%, 54.6%, 0%, 57.6%)
CIE-LABlab(22.69, 15.98, -35.79)
CIE-LCHlch(22.69, 39.20, 294.07°)
OKLaboklab(33.96% 0.0045 -0.1025)
OKLCHoklch(33.96% 0.103 272.5)
XYZxyz(4.6409, 3.7103, 14.6560)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27316C #6C6227
analogous
#27546C #27316C #40276C
triadic
#27316C #6C2731 #316C27
tetradic
#27316C #6C2754 #6C6227 #276C40
square
#27316C #6C2754 #6C6227 #276C40
split-complementary
#27316C #6C4027 #546C27
monochromatic
#080A16 #171D3F #27316C #374599 #4E5FBF

Accessibility & contrast

On white

12.05
#27316C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27316C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27316C#FFFFFF#000000##FFFFFF
##27316C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F396E
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #27316c;
/* rgb */ color: rgb(39, 49, 108);
/* oklch */ color: oklch(34.0% 0.103 272.5);
Tailwind
colors: {
  custom: {
    50: '#696896',
    500: '#27316c',
    950: '#000000',
  },
}
SCSS
$custom: #27316c;
$custom-light: #696896;
$custom-dark: #000000;
JSON
{
  "hex": "#27316c",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 231.304,
    "s": 46.939,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33962,
    "c": 0.10264,
    "h": 272.5
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#27316C
secondary
#9F9350
accent
#C351D7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #27316C

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

Preview Lab → · Contrast checker → · Palette generator →

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