#271889#271889

#271889 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.173 H 276.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#271889
RGBrgb(39, 24, 137)
HSLhsl(248, 70%, 32%)
HSVhsv(248, 82%, 54%)
CMYKcmyk(71.5%, 82.5%, 0%, 46.3%)
CIE-LABlab(19.60, 42.01, -59.30)
CIE-LCHlch(19.60, 72.67, 305.31°)
OKLaboklab(32.56% 0.0205 -0.1714)
OKLCHoklch(32.56% 0.173 276.8)
XYZxyz(5.6772, 2.8902, 23.9207)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271889 #7A8918
analogous
#184289 #271889 #601889
triadic
#271889 #892718 #188927
tetradic
#271889 #891842 #7A8918 #188960
square
#271889 #891842 #7A8918 #188960
split-complementary
#271889 #896018 #428918
monochromatic
#090621 #180F55 #271889 #3621BD #533EDD

Accessibility & contrast

On white

13.31
#271889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#271889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271889
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271889#FFFFFF#000000##FFFFFF
##2718891.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271889;
/* rgb */ color: rgb(39, 24, 137);
/* oklch */ color: oklch(32.6% 0.173 276.8);
Tailwind
colors: {
  custom: {
    50: '#7259ad',
    500: '#271889',
    950: '#000000',
  },
}
SCSS
$custom: #271889;
$custom-light: #7259ad;
$custom-dark: #000000;
JSON
{
  "hex": "#271889",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 247.965,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32559,
    "c": 0.17261,
    "h": 276.8
  },
  "luminance": 0.02891
}

Semantic roles & 50–950 ramp

primary
#271889
secondary
#ACBD40
accent
#ED3BD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271889

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

Preview Lab → · Contrast checker → · Palette generator →

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