#271792#271792

#271792 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.184 H 275.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#271792
RGBrgb(39, 23, 146)
HSLhsl(248, 73%, 33%)
HSVhsv(248, 84%, 57%)
CMYKcmyk(73.3%, 84.2%, 0%, 42.7%)
CIE-LABlab(20.51, 45.28, -63.40)
CIE-LCHlch(20.51, 77.91, 305.53°)
OKLaboklab(33.51% 0.0183 -0.1833)
OKLCHoklch(33.51% 0.184 275.7)
XYZxyz(6.3297, 3.1188, 27.4570)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271792 #829217
analogous
#174492 #271792 #641792
triadic
#271792 #922717 #179227
tetradic
#271792 #921744 #829217 #179264
square
#271792 #921744 #829217 #179264
split-complementary
#271792 #926417 #449217
monochromatic
#0B0628 #190F5D #271792 #351FC7 #5742E1

Accessibility & contrast

On white

12.93
#271792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271792
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271792#FFFFFF#000000##FFFFFF
##2717921.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003795
Deuteranopia (green-blind)
#002C90
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271792;
/* rgb */ color: rgb(39, 23, 146);
/* oklch */ color: oklch(33.5% 0.184 275.7);
Tailwind
colors: {
  custom: {
    50: '#7459b3',
    500: '#271792',
    950: '#000000',
  },
}
SCSS
$custom: #271792;
$custom-light: #7459b3;
$custom-dark: #000000;
JSON
{
  "hex": "#271792",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 146
  },
  "hsl": {
    "h": 247.805,
    "s": 72.781,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33505,
    "c": 0.18417,
    "h": 275.7
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#271792
secondary
#B1C243
accent
#EF38D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271792

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

Preview Lab → · Contrast checker → · Palette generator →

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