#271894#271894

#271894 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.9% C 0.186 H 275.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#271894
RGBrgb(39, 24, 148)
HSLhsl(247, 72%, 34%)
HSVhsv(247, 84%, 58%)
CMYKcmyk(73.6%, 83.8%, 0%, 42%)
CIE-LABlab(20.91, 45.44, -63.98)
CIE-LCHlch(20.91, 78.47, 305.38°)
OKLaboklab(33.85% 0.0173 -0.185)
OKLCHoklch(33.85% 0.186 275.3)
XYZxyz(6.5069, 3.2221, 28.2902)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271894 #859418
analogous
#184794 #271894 #651894
triadic
#271894 #942718 #189427
tetradic
#271894 #941847 #859418 #189465
square
#271894 #941847 #859418 #189465
split-complementary
#271894 #946518 #479418
monochromatic
#0B072B #190F5F #271894 #3521C9 #5845E1

Accessibility & contrast

On white

12.77
#271894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271894
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271894#FFFFFF#000000##FFFFFF
##2718941.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002D92
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271894;
/* rgb */ color: rgb(39, 24, 148);
/* oklch */ color: oklch(33.9% 0.186 275.3);
Tailwind
colors: {
  custom: {
    50: '#745ab5',
    500: '#271894',
    950: '#000000',
  },
}
SCSS
$custom: #271894;
$custom-light: #745ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#271894",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 247.258,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3385,
    "c": 0.18577,
    "h": 275.3
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271894

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

Preview Lab → · Contrast checker → · Palette generator →

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