#271796#271796

#271796 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 34.0% C 0.189 H 275.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#271796
RGBrgb(39, 23, 150)
HSLhsl(248, 73%, 34%)
HSVhsv(248, 85%, 59%)
CMYKcmyk(74%, 84.7%, 0%, 41.2%)
CIE-LABlab(21.00, 46.50, -65.07)
CIE-LCHlch(21.00, 79.98, 305.55°)
OKLaboklab(33.98% 0.0171 -0.1881)
OKLCHoklch(33.98% 0.189 275.2)
XYZxyz(6.6463, 3.2455, 29.1244)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271796 #869617
analogous
#174796 #271796 #671796
triadic
#271796 #962717 #179627
tetradic
#271796 #961747 #869617 #179667
square
#271796 #961747 #869617 #179667
split-complementary
#271796 #966717 #479617
monochromatic
#0B072C #190F61 #271796 #351FCB #5945E2

Accessibility & contrast

On white

12.73
#271796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#271796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271796
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271796#FFFFFF#000000##FFFFFF
##2717961.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002D94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271796;
/* rgb */ color: rgb(39, 23, 150);
/* oklch */ color: oklch(34.0% 0.189 275.2);
Tailwind
colors: {
  custom: {
    50: '#7559b6',
    500: '#271796',
    950: '#000000',
  },
}
SCSS
$custom: #271796;
$custom-light: #7559b6;
$custom-dark: #000000;
JSON
{
  "hex": "#271796",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 247.559,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33982,
    "c": 0.18886,
    "h": 275.2
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#271796
secondary
#B4C345
accent
#F038D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271796

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

Preview Lab → · Contrast checker → · Palette generator →

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