#27188B#27188B

#27188B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.175 H 276.5°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#27188B
RGBrgb(39, 24, 139)
HSLhsl(248, 71%, 32%)
HSVhsv(248, 83%, 55%)
CMYKcmyk(71.9%, 82.7%, 0%, 45.5%)
CIE-LABlab(19.83, 42.64, -60.16)
CIE-LCHlch(19.83, 73.74, 305.32°)
OKLaboklab(32.79% 0.02 -0.1739)
OKLCHoklch(32.79% 0.175 276.5)
XYZxyz(5.8220, 2.9481, 24.6833)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27188B #7C8B18
analogous
#18438B #27188B #61188B
triadic
#27188B #8B2718 #188B27
tetradic
#27188B #8B1843 #7C8B18 #188B61
square
#27188B #8B1843 #7C8B18 #188B61
split-complementary
#27188B #8B6118 #438B18
monochromatic
#0A0623 #180F57 #27188B #3621BF #543FDE

Accessibility & contrast

On white

13.21
#27188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#27188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27188B
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27188B#FFFFFF#000000##FFFFFF
##27188B1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #27188b;
/* rgb */ color: rgb(39, 24, 139);
/* oklch */ color: oklch(32.8% 0.175 276.5);
Tailwind
colors: {
  custom: {
    50: '#7259ae',
    500: '#27188b',
    950: '#000000',
  },
}
SCSS
$custom: #27188b;
$custom-light: #7259ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27188b",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 247.826,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32792,
    "c": 0.17502,
    "h": 276.5
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#27188B
secondary
#AEBE40
accent
#ED3AD6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #27188B

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

Preview Lab → · Contrast checker → · Palette generator →

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