#27198B#27198B

#27198B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.174 H 276.4°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#27198B
RGBrgb(39, 25, 139)
HSLhsl(247, 70%, 32%)
HSVhsv(247, 82%, 55%)
CMYKcmyk(71.9%, 82%, 0%, 45.5%)
CIE-LABlab(20.00, 42.14, -59.88)
CIE-LCHlch(20.00, 73.23, 305.14°)
OKLaboklab(32.91% 0.0195 -0.1731)
OKLCHoklch(32.91% 0.174 276.4)
XYZxyz(5.8430, 2.9901, 24.6903)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27198B #7D8B19
analogous
#19448B #27198B #60198B
triadic
#27198B #8B2719 #198B27
tetradic
#27198B #8B1944 #7D8B19 #198B60
square
#27198B #8B1944 #7D8B19 #198B60
split-complementary
#27198B #8B6019 #448B19
monochromatic
#0A0623 #181057 #27198B #3622BF #5541DD

Accessibility & contrast

On white

13.14
#27198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#27198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27198B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27198B#FFFFFF#000000##FFFFFF
##27198B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #27198b;
/* rgb */ color: rgb(39, 25, 139);
/* oklch */ color: oklch(32.9% 0.174 276.4);
Tailwind
colors: {
  custom: {
    50: '#7259ae',
    500: '#27198b',
    950: '#000000',
  },
}
SCSS
$custom: #27198b;
$custom-light: #7259ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27198b",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 247.368,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3291,
    "c": 0.17418,
    "h": 276.4
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#27198B
secondary
#AFBE42
accent
#EC3BD7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #27198B

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

Preview Lab → · Contrast checker → · Palette generator →

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