#27317B#27317B

#27317B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.125 H 272.4°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#27317B
RGBrgb(39, 49, 123)
HSLhsl(233, 52%, 32%)
HSVhsv(233, 68%, 48%)
CMYKcmyk(68.3%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.86, 21.69, -43.48)
CIE-LCHlch(23.86, 48.59, 296.51°)
OKLaboklab(35.21% 0.0053 -0.1252)
OKLCHoklch(35.21% 0.125 272.4)
XYZxyz(5.5090, 4.0575, 19.2279)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27317B #7B7127
analogous
#275B7B #27317B #47277B
triadic
#27317B #7B2731 #317B27
tetradic
#27317B #7B275B #7B7127 #277B47
square
#27317B #7B275B #7B7127 #277B47
split-complementary
#27317B #7B4727 #5B7B27
monochromatic
#0A0C1E #181E4D #27317B #3644A9 #5462C9

Accessibility & contrast

On white

11.59
#27317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#27317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27317B
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27317B#FFFFFF#000000##FFFFFF
##27317B1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #27317b;
/* rgb */ color: rgb(39, 49, 123);
/* oklch */ color: oklch(35.2% 0.125 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c69a2',
    500: '#27317b',
    950: '#000000',
  },
}
SCSS
$custom: #27317b;
$custom-light: #6c69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27317b",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 232.857,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.12527,
    "h": 272.4
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#27317B
secondary
#ADA251
accent
#CA4CDB
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #27317B

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

Preview Lab → · Contrast checker → · Palette generator →

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