#27318E#27318E

#27318E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.152 H 271.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#27318E
RGBrgb(39, 49, 142)
HSLhsl(234, 57%, 35%)
HSVhsv(234, 73%, 56%)
CMYKcmyk(72.5%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.50, 28.83, -52.70)
CIE-LCHlch(25.50, 60.07, 298.68°)
OKLaboklab(36.94% 0.0048 -0.1522)
OKLCHoklch(36.94% 0.152 271.8)
XYZxyz(6.8158, 4.5803, 26.1108)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27318E #8E8427
analogous
#27648E #27318E #50278E
triadic
#27318E #8E2731 #318E27
tetradic
#27318E #8E2764 #8E8427 #278E50
square
#27318E #8E2764 #8E8427 #278E50
split-complementary
#27318E #8E5027 #648E27
monochromatic
#0D102E #1A205E #27318E #3442BE #5D68D2

Accessibility & contrast

On white

10.96
#27318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#27318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27318E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27318E#FFFFFF#000000##FFFFFF
##27318E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #27318e;
/* rgb */ color: rgb(39, 49, 142);
/* oklch */ color: oklch(36.9% 0.152 271.8);
Tailwind
colors: {
  custom: {
    50: '#7069b0',
    500: '#27318e',
    950: '#000000',
  },
}
SCSS
$custom: #27318e;
$custom-light: #7069b0;
$custom-dark: #000000;
JSON
{
  "hex": "#27318e",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 234.175,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36936,
    "c": 0.15228,
    "h": 271.8
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#27318E
secondary
#B8AE59
accent
#D148E0
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #27318E

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

Preview Lab → · Contrast checker → · Palette generator →

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