#271689#271689

#271689 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.174 H 277.1°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#271689
RGBrgb(39, 22, 137)
HSLhsl(249, 72%, 31%)
HSVhsv(249, 84%, 54%)
CMYKcmyk(71.5%, 83.9%, 0%, 46.3%)
CIE-LABlab(19.27, 42.97, -59.85)
CIE-LCHlch(19.27, 73.68, 305.68°)
OKLaboklab(32.33% 0.0214 -0.1729)
OKLCHoklch(32.33% 0.174 277.1)
XYZxyz(5.6375, 2.8108, 23.9075)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271689 #788916
analogous
#163E89 #271689 #601689
triadic
#271689 #892716 #168927
tetradic
#271689 #89163E #788916 #168960
square
#271689 #89163E #788916 #168960
split-complementary
#271689 #896016 #3E8916
monochromatic
#090520 #180E54 #271689 #361EBE #523ADF

Accessibility & contrast

On white

13.44
#271689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#271689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271689
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271689#FFFFFF#000000##FFFFFF
##2716891.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271689;
/* rgb */ color: rgb(39, 22, 137);
/* oklch */ color: oklch(32.3% 0.174 277.1);
Tailwind
colors: {
  custom: {
    50: '#7258ad',
    500: '#271689',
    950: '#000000',
  },
}
SCSS
$custom: #271689;
$custom-light: #7258ad;
$custom-dark: #000000;
JSON
{
  "hex": "#271689",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 248.87,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32331,
    "c": 0.17425,
    "h": 277.1
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#271689
secondary
#AABD3E
accent
#EF39D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271689

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

Preview Lab → · Contrast checker → · Palette generator →

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