#27318C#27318C

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

Color values

HEX#27318C
RGBrgb(39, 49, 140)
HSLhsl(234, 56%, 35%)
HSVhsv(234, 72%, 55%)
CMYKcmyk(72.1%, 65%, 0%, 45.1%)
CIE-LABlab(25.32, 28.09, -51.75)
CIE-LCHlch(25.32, 58.88, 298.49°)
OKLaboklab(36.75% 0.0049 -0.1494)
OKLCHoklch(36.75% 0.15 271.9)
XYZxyz(6.6670, 4.5208, 25.3271)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27318C #8C8227
analogous
#27648C #27318C #4F278C
triadic
#27318C #8C2731 #318C27
tetradic
#27318C #8C2764 #8C8227 #278C4F
square
#27318C #8C2764 #8C8227 #278C4F
split-complementary
#27318C #8C4F27 #648C27
monochromatic
#0C0F2C #1A205C #27318C #3442BC #5C68D2

Accessibility & contrast

On white

11.03
#27318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#27318C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27318C
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27318C#FFFFFF#000000##FFFFFF
##27318C1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #27318c;
/* rgb */ color: rgb(39, 49, 140);
/* oklch */ color: oklch(36.7% 0.150 271.9);
Tailwind
colors: {
  custom: {
    50: '#7069ae',
    500: '#27318c',
    950: '#000000',
  },
}
SCSS
$custom: #27318c;
$custom-light: #7069ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27318c",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 234.059,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36748,
    "c": 0.14952,
    "h": 271.9
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#27318C
secondary
#B7AD58
accent
#D148E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #27318C

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

Preview Lab → · Contrast checker → · Palette generator →

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