#271793#271793

#271793 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.185 H 275.6°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#271793
RGBrgb(39, 23, 147)
HSLhsl(248, 73%, 33%)
HSVhsv(248, 84%, 58%)
CMYKcmyk(73.5%, 84.4%, 0%, 42.4%)
CIE-LABlab(20.64, 45.59, -63.82)
CIE-LCHlch(20.64, 78.43, 305.54°)
OKLaboklab(33.62% 0.018 -0.1845)
OKLCHoklch(33.62% 0.185 275.6)
XYZxyz(6.4078, 3.1501, 27.8684)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271793 #839317
analogous
#174593 #271793 #651793
triadic
#271793 #932717 #179327
tetradic
#271793 #931745 #839317 #179365
square
#271793 #931745 #839317 #179365
split-complementary
#271793 #936517 #459317
monochromatic
#0B0629 #190F5E #271793 #351FC8 #5743E2

Accessibility & contrast

On white

12.88
#271793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271793
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271793#FFFFFF#000000##FFFFFF
##2717931.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002C91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271793;
/* rgb */ color: rgb(39, 23, 147);
/* oklch */ color: oklch(33.6% 0.185 275.6);
Tailwind
colors: {
  custom: {
    50: '#7459b4',
    500: '#271793',
    950: '#000000',
  },
}
SCSS
$custom: #271793;
$custom-light: #7459b4;
$custom-dark: #000000;
JSON
{
  "hex": "#271793",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 147
  },
  "hsl": {
    "h": 247.742,
    "s": 72.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33624,
    "c": 0.18534,
    "h": 275.6
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#271793
secondary
#B2C244
accent
#F038D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271793

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

Preview Lab → · Contrast checker → · Palette generator →

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