#27167E#27167E

#27167E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.161 H 278.9°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#27167E
RGBrgb(39, 22, 126)
HSLhsl(250, 70%, 29%)
HSVhsv(250, 83%, 49%)
CMYKcmyk(69%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.97, 39.52, -55.05)
CIE-LCHlch(17.97, 67.77, 305.68°)
OKLaboklab(31.05% 0.0248 -0.159)
OKLCHoklch(31.05% 0.161 278.9)
XYZxyz(4.8883, 2.5111, 19.9617)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27167E #6D7E16
analogous
#16397E #27167E #5B167E
triadic
#27167E #7E2716 #167E27
tetradic
#27167E #7E1639 #6D7E16 #167E5B
square
#27167E #7E1639 #6D7E16 #167E5B
split-complementary
#27167E #7E5B16 #397E16
monochromatic
#08051A #170D4A #27167E #371FB2 #4F33DB

Accessibility & contrast

On white

13.98
#27167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#27167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27167E
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27167E#FFFFFF#000000##FFFFFF
##27167E1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #27167e;
/* rgb */ color: rgb(39, 22, 126);
/* oklch */ color: oklch(31.1% 0.161 278.9);
Tailwind
colors: {
  custom: {
    50: '#6f57a5',
    500: '#27167e',
    950: '#000000',
  },
}
SCSS
$custom: #27167e;
$custom-light: #6f57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27167e",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 249.808,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3105,
    "c": 0.16092,
    "h": 278.9
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#27167E
secondary
#A0B33D
accent
#ED3BD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27167E

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

Preview Lab → · Contrast checker → · Palette generator →

#27167E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva