#271794#271794

#271794 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.187 H 275.4°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#271794
RGBrgb(39, 23, 148)
HSLhsl(248, 73%, 34%)
HSVhsv(248, 84%, 58%)
CMYKcmyk(73.6%, 84.5%, 0%, 42%)
CIE-LABlab(20.76, 45.89, -64.24)
CIE-LCHlch(20.76, 78.95, 305.54°)
OKLaboklab(33.74% 0.0177 -0.1857)
OKLCHoklch(33.74% 0.187 275.4)
XYZxyz(6.4866, 3.1816, 28.2835)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271794 #849417
analogous
#174594 #271794 #651794
triadic
#271794 #942717 #179427
tetradic
#271794 #941745 #849417 #179465
square
#271794 #941745 #849417 #179465
split-complementary
#271794 #946517 #459417
monochromatic
#0B072A #190F5F #271794 #351FC9 #5844E2

Accessibility & contrast

On white

12.83
#271794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#271794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271794
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271794#FFFFFF#000000##FFFFFF
##2717941.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271794;
/* rgb */ color: rgb(39, 23, 148);
/* oklch */ color: oklch(33.7% 0.187 275.4);
Tailwind
colors: {
  custom: {
    50: '#7459b5',
    500: '#271794',
    950: '#000000',
  },
}
SCSS
$custom: #271794;
$custom-light: #7459b5;
$custom-dark: #000000;
JSON
{
  "hex": "#271794",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 247.68,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33743,
    "c": 0.18652,
    "h": 275.4
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271794

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

Preview Lab → · Contrast checker → · Palette generator →

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