#27318A#27318A

#27318A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.147 H 271.9°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#27318A
RGBrgb(39, 49, 138)
HSLhsl(234, 56%, 35%)
HSVhsv(234, 72%, 54%)
CMYKcmyk(71.7%, 64.5%, 0%, 45.9%)
CIE-LABlab(25.14, 27.34, -50.80)
CIE-LCHlch(25.14, 57.69, 298.29°)
OKLaboklab(36.56% 0.005 -0.1467)
OKLCHoklch(36.56% 0.147 271.9)
XYZxyz(6.5209, 4.4623, 24.5575)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27318A #8A8027
analogous
#27638A #27318A #4E278A
triadic
#27318A #8A2731 #318A27
tetradic
#27318A #8A2763 #8A8027 #278A4E
square
#27318A #8A2763 #8A8027 #278A4E
split-complementary
#27318A #8A4E27 #638A27
monochromatic
#0C0F2B #1A205A #27318A #3442BA #5B67D1

Accessibility & contrast

On white

11.10
#27318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#27318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27318A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27318A#FFFFFF#000000##FFFFFF
##27318A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #27318a;
/* rgb */ color: rgb(39, 49, 138);
/* oklch */ color: oklch(36.6% 0.147 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f69ad',
    500: '#27318a',
    950: '#000000',
  },
}
SCSS
$custom: #27318a;
$custom-light: #6f69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#27318a",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 233.939,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36561,
    "c": 0.14674,
    "h": 271.9
  },
  "luminance": 0.04463
}

Semantic roles & 50–950 ramp

primary
#27318A
secondary
#B6AC57
accent
#D049DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #27318A

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

Preview Lab → · Contrast checker → · Palette generator →

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