#27197E#27197E

#27197E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.158 H 278.4°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#27197E
RGBrgb(39, 25, 126)
HSLhsl(248, 67%, 30%)
HSVhsv(248, 80%, 49%)
CMYKcmyk(69%, 80.2%, 0%, 50.6%)
CIE-LABlab(18.51, 37.97, -54.16)
CIE-LCHlch(18.51, 66.14, 305.03°)
OKLaboklab(31.43% 0.0232 -0.1564)
OKLCHoklch(31.43% 0.158 278.4)
XYZxyz(4.9490, 2.6325, 19.9819)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27197E #707E19
analogous
#193E7E #27197E #5A197E
triadic
#27197E #7E2719 #197E27
tetradic
#27197E #7E193E #707E19 #197E5A
square
#27197E #7E193E #707E19 #197E5A
split-complementary
#27197E #7E5A19 #3E7E19
monochromatic
#08051A #170F4B #27197E #3723B1 #503AD8

Accessibility & contrast

On white

13.76
#27197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#27197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27197E
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27197E#FFFFFF#000000##FFFFFF
##27197E1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #27197e;
/* rgb */ color: rgb(39, 25, 126);
/* oklch */ color: oklch(31.4% 0.158 278.4);
Tailwind
colors: {
  custom: {
    50: '#6f58a4',
    500: '#27197e',
    950: '#000000',
  },
}
SCSS
$custom: #27197e;
$custom-light: #6f58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27197e",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 248.317,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31426,
    "c": 0.15814,
    "h": 278.4
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#27197E
secondary
#A2B241
accent
#EA3ED2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27197E

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

Preview Lab → · Contrast checker → · Palette generator →

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