#27197F#27197F

#27197F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.159 H 278.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#27197F
RGBrgb(39, 25, 127)
HSLhsl(248, 67%, 30%)
HSVhsv(248, 80%, 50%)
CMYKcmyk(69.3%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.62, 38.29, -54.61)
CIE-LCHlch(18.62, 66.70, 305.04°)
OKLaboklab(31.54% 0.0229 -0.1577)
OKLCHoklch(31.54% 0.159 278.3)
XYZxyz(5.0139, 2.6585, 20.3235)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27197F #717F19
analogous
#193E7F #27197F #5A197F
triadic
#27197F #7F2719 #197F27
tetradic
#27197F #7F193E #717F19 #197F5A
square
#27197F #7F193E #717F19 #197F5A
split-complementary
#27197F #7F5A19 #3E7F19
monochromatic
#08051A #170F4C #27197F #3723B2 #503AD8

Accessibility & contrast

On white

13.71
#27197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27197F
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27197F#FFFFFF#000000##FFFFFF
##27197F1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27197f;
/* rgb */ color: rgb(39, 25, 127);
/* oklch */ color: oklch(31.5% 0.159 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f59a5',
    500: '#27197f',
    950: '#000000',
  },
}
SCSS
$custom: #27197f;
$custom-light: #6f59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27197f",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 248.235,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31538,
    "c": 0.1594,
    "h": 278.3
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27197F

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

Preview Lab → · Contrast checker → · Palette generator →

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