#271798#271798

#271798 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.191 H 274.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#271798
RGBrgb(39, 23, 152)
HSLhsl(247, 74%, 34%)
HSVhsv(247, 85%, 60%)
CMYKcmyk(74.3%, 84.9%, 0%, 40.4%)
CIE-LABlab(21.25, 47.11, -65.89)
CIE-LCHlch(21.25, 81.00, 305.56°)
OKLaboklab(34.22% 0.0165 -0.1905)
OKLCHoklch(34.22% 0.191 274.9)
XYZxyz(6.8087, 3.3104, 29.9798)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271798 #889817
analogous
#174898 #271798 #681798
triadic
#271798 #982717 #179827
tetradic
#271798 #981748 #889817 #179868
square
#271798 #981748 #889817 #179868
split-complementary
#271798 #986817 #489817
monochromatic
#0C072E #190F63 #271798 #351FCD #5A46E3

Accessibility & contrast

On white

12.63
#271798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271798
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271798#FFFFFF#000000##FFFFFF
##2717981.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271798;
/* rgb */ color: rgb(39, 23, 152);
/* oklch */ color: oklch(34.2% 0.191 274.9);
Tailwind
colors: {
  custom: {
    50: '#7559b8',
    500: '#271798',
    950: '#000000',
  },
}
SCSS
$custom: #271798;
$custom-light: #7559b8;
$custom-dark: #000000;
JSON
{
  "hex": "#271798",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 247.442,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34221,
    "c": 0.1912,
    "h": 274.9
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#271798
secondary
#B5C447
accent
#F037D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271798

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

Preview Lab → · Contrast checker → · Palette generator →

#271798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva