#27317E#27317E

#27317E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.130 H 272.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#27317E
RGBrgb(39, 49, 126)
HSLhsl(233, 53%, 32%)
HSVhsv(233, 69%, 49%)
CMYKcmyk(69%, 61.1%, 0%, 50.6%)
CIE-LABlab(24.11, 22.82, -44.97)
CIE-LCHlch(24.11, 50.43, 296.91°)
OKLaboklab(35.47% 0.0053 -0.1295)
OKLCHoklch(35.47% 0.13 272.3)
XYZxyz(5.6996, 4.1338, 20.2322)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27317E #7E7427
analogous
#275D7E #27317E #48277E
triadic
#27317E #7E2731 #317E27
tetradic
#27317E #7E275D #7E7427 #277E48
square
#27317E #7E275D #7E7427 #277E48
split-complementary
#27317E #7E4827 #5D7E27
monochromatic
#0A0D21 #191F4F #27317E #3543AD #5563CA

Accessibility & contrast

On white

11.50
#27317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#27317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27317E
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27317E#FFFFFF#000000##FFFFFF
##27317E1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #27317e;
/* rgb */ color: rgb(39, 49, 126);
/* oklch */ color: oklch(35.5% 0.130 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d69a4',
    500: '#27317e',
    950: '#000000',
  },
}
SCSS
$custom: #27317e;
$custom-light: #6d69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27317e",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 233.103,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35473,
    "c": 0.12966,
    "h": 272.3
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#27317E
secondary
#AFA452
accent
#CC4CDC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #27317E

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

Preview Lab → · Contrast checker → · Palette generator →

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