#27188C#27188C

#27188C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.176 H 276.4°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#27188C
RGBrgb(39, 24, 140)
HSLhsl(248, 71%, 32%)
HSVhsv(248, 83%, 55%)
CMYKcmyk(72.1%, 82.9%, 0%, 45.1%)
CIE-LABlab(19.95, 42.95, -60.59)
CIE-LCHlch(19.95, 74.27, 305.33°)
OKLaboklab(32.91% 0.0197 -0.1751)
OKLCHoklch(32.91% 0.176 276.4)
XYZxyz(5.8954, 2.9775, 25.0699)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27188C #7D8C18
analogous
#18438C #27188C #61188C
triadic
#27188C #8C2718 #188C27
tetradic
#27188C #8C1843 #7D8C18 #188C61
square
#27188C #8C1843 #7D8C18 #188C61
split-complementary
#27188C #8C6118 #438C18
monochromatic
#0A0624 #180F58 #27188C #3621C0 #5540DE

Accessibility & contrast

On white

13.16
#27188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#27188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27188C
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27188C#FFFFFF#000000##FFFFFF
##27188C1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002B8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #27188c;
/* rgb */ color: rgb(39, 24, 140);
/* oklch */ color: oklch(32.9% 0.176 276.4);
Tailwind
colors: {
  custom: {
    50: '#7259af',
    500: '#27188c',
    950: '#000000',
  },
}
SCSS
$custom: #27188c;
$custom-light: #7259af;
$custom-dark: #000000;
JSON
{
  "hex": "#27188c",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 247.759,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32909,
    "c": 0.17623,
    "h": 276.4
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#27188C
secondary
#AFBF41
accent
#ED3AD6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #27188C

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

Preview Lab → · Contrast checker → · Palette generator →

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