#27168B#27168B

#27168B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.177 H 276.8°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#27168B
RGBrgb(39, 22, 139)
HSLhsl(249, 73%, 32%)
HSVhsv(249, 84%, 55%)
CMYKcmyk(71.9%, 84.2%, 0%, 45.5%)
CIE-LABlab(19.51, 43.59, -60.70)
CIE-LCHlch(19.51, 74.73, 305.68°)
OKLaboklab(32.57% 0.0208 -0.1754)
OKLCHoklch(32.57% 0.177 276.8)
XYZxyz(5.7823, 2.8687, 24.6701)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27168B #7A8B16
analogous
#16408B #27168B #62168B
triadic
#27168B #8B2716 #168B27
tetradic
#27168B #8B1640 #7A8B16 #168B62
square
#27168B #8B1640 #7A8B16 #168B62
split-complementary
#27168B #8B6216 #408B16
monochromatic
#090521 #180E56 #27168B #361EC0 #533BE0

Accessibility & contrast

On white

13.34
#27168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#27168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27168B
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27168B#FFFFFF#000000##FFFFFF
##27168B1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #27168b;
/* rgb */ color: rgb(39, 22, 139);
/* oklch */ color: oklch(32.6% 0.177 276.8);
Tailwind
colors: {
  custom: {
    50: '#7258ae',
    500: '#27168b',
    950: '#000000',
  },
}
SCSS
$custom: #27168b;
$custom-light: #7258ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27168b",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 248.718,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32568,
    "c": 0.17664,
    "h": 276.8
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#27168B
secondary
#ACBF3E
accent
#EF38D5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #27168B

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

Preview Lab → · Contrast checker → · Palette generator →

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