#271893#271893

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

Color values

HEX#271893
RGBrgb(39, 24, 147)
HSLhsl(247, 72%, 34%)
HSVhsv(247, 84%, 58%)
CMYKcmyk(73.5%, 83.7%, 0%, 42.4%)
CIE-LABlab(20.79, 45.13, -63.56)
CIE-LCHlch(20.79, 77.95, 305.38°)
OKLaboklab(33.73% 0.0176 -0.1837)
OKLCHoklch(33.73% 0.185 275.5)
XYZxyz(6.4281, 3.1906, 27.8752)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271893 #849318
analogous
#184693 #271893 #641893
triadic
#271893 #932718 #189327
tetradic
#271893 #931846 #849318 #189364
square
#271893 #931846 #849318 #189364
split-complementary
#271893 #936418 #469318
monochromatic
#0B072A #190F5E #271893 #3521C8 #5845E1

Accessibility & contrast

On white

12.82
#271893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271893
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271893#FFFFFF#000000##FFFFFF
##2718931.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.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: #271893;
/* rgb */ color: rgb(39, 24, 147);
/* oklch */ color: oklch(33.7% 0.185 275.5);
Tailwind
colors: {
  custom: {
    50: '#7459b4',
    500: '#271893',
    950: '#000000',
  },
}
SCSS
$custom: #271893;
$custom-light: #7459b4;
$custom-dark: #000000;
JSON
{
  "hex": "#271893",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 147
  },
  "hsl": {
    "h": 247.317,
    "s": 71.93,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33732,
    "c": 0.18458,
    "h": 275.5
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#271893
secondary
#B2C245
accent
#EF39D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271893

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

Preview Lab → · Contrast checker → · Palette generator →

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