#27317C#27317C

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

Color values

HEX#27317C
RGBrgb(39, 49, 124)
HSLhsl(233, 52%, 32%)
HSVhsv(233, 69%, 49%)
CMYKcmyk(68.5%, 60.5%, 0%, 51.4%)
CIE-LABlab(23.94, 22.07, -43.98)
CIE-LCHlch(23.94, 49.21, 296.64°)
OKLaboklab(35.3% 0.0053 -0.1266)
OKLCHoklch(35.3% 0.127 272.4)
XYZxyz(5.5719, 4.0827, 19.5593)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27317C #7C7227
analogous
#275C7C #27317C #48277C
triadic
#27317C #7C2731 #317C27
tetradic
#27317C #7C275C #7C7227 #277C48
square
#27317C #7C275C #7C7227 #277C48
split-complementary
#27317C #7C4827 #5C7C27
monochromatic
#0A0C1F #181F4D #27317C #3643AB #5462C9

Accessibility & contrast

On white

11.56
#27317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#27317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27317C
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27317C#FFFFFF#000000##FFFFFF
##27317C1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27317c;
/* rgb */ color: rgb(39, 49, 124);
/* oklch */ color: oklch(35.3% 0.127 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c69a3',
    500: '#27317c',
    950: '#000000',
  },
}
SCSS
$custom: #27317c;
$custom-light: #6c69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#27317c",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 232.941,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35298,
    "c": 0.12674,
    "h": 272.4
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#27317C
secondary
#AEA351
accent
#CB4CDC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #27317C

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

Preview Lab → · Contrast checker → · Palette generator →

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