#27318D#27318D

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

Color values

HEX#27318D
RGBrgb(39, 49, 141)
HSLhsl(234, 57%, 35%)
HSVhsv(234, 72%, 55%)
CMYKcmyk(72.3%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.41, 28.46, -52.23)
CIE-LCHlch(25.41, 59.48, 298.59°)
OKLaboklab(36.84% 0.0048 -0.1508)
OKLCHoklch(36.84% 0.151 271.8)
XYZxyz(6.7411, 4.5504, 25.7172)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27318D #8D8327
analogous
#27648D #27318D #50278D
triadic
#27318D #8D2731 #318D27
tetradic
#27318D #8D2764 #8D8327 #278D50
square
#27318D #8D2764 #8D8327 #278D50
split-complementary
#27318D #8D5027 #648D27
monochromatic
#0C102D #1A205D #27318D #3442BD #5C68D2

Accessibility & contrast

On white

10.99
#27318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#27318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27318D
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27318D#FFFFFF#000000##FFFFFF
##27318D1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27318d;
/* rgb */ color: rgb(39, 49, 141);
/* oklch */ color: oklch(36.8% 0.151 271.8);
Tailwind
colors: {
  custom: {
    50: '#7069af',
    500: '#27318d',
    950: '#000000',
  },
}
SCSS
$custom: #27318d;
$custom-light: #7069af;
$custom-dark: #000000;
JSON
{
  "hex": "#27318d",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 234.118,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36841,
    "c": 0.15091,
    "h": 271.8
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#27318D
secondary
#B7AE59
accent
#D148E0
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #27318D

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

Preview Lab → · Contrast checker → · Palette generator →

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