#27197C#27197C

#27197C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.156 H 278.8°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#27197C
RGBrgb(39, 25, 124)
HSLhsl(248, 66%, 29%)
HSVhsv(248, 80%, 49%)
CMYKcmyk(68.5%, 79.8%, 0%, 51.4%)
CIE-LABlab(18.28, 37.32, -53.26)
CIE-LCHlch(18.28, 65.03, 305.02°)
OKLaboklab(31.2% 0.0237 -0.1538)
OKLCHoklch(31.2% 0.156 278.8)
XYZxyz(4.8213, 2.5814, 19.3091)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27197C #6E7C19
analogous
#193D7C #27197C #59197C
triadic
#27197C #7C2719 #197C27
tetradic
#27197C #7C193D #6E7C19 #197C59
square
#27197C #7C193D #6E7C19 #197C59
split-complementary
#27197C #7C5919 #3D7C19
monochromatic
#080519 #170F49 #27197C #3723AF #4F38D7

Accessibility & contrast

On white

13.85
#27197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#27197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27197C
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27197C#FFFFFF#000000##FFFFFF
##27197C1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #27197c;
/* rgb */ color: rgb(39, 25, 124);
/* oklch */ color: oklch(31.2% 0.156 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e58a3',
    500: '#27197c',
    950: '#000000',
  },
}
SCSS
$custom: #27197c;
$custom-light: #6e58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#27197c",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 248.485,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31202,
    "c": 0.15563,
    "h": 278.8
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#27197C
secondary
#A1B040
accent
#E93ED1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27197C

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

Preview Lab → · Contrast checker → · Palette generator →

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