#271888#271888

#271888 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.171 H 277.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#271888
RGBrgb(39, 24, 136)
HSLhsl(248, 70%, 31%)
HSVhsv(248, 82%, 53%)
CMYKcmyk(71.3%, 82.4%, 0%, 46.7%)
CIE-LABlab(19.48, 41.69, -58.87)
CIE-LCHlch(19.48, 72.14, 305.31°)
OKLaboklab(32.44% 0.0208 -0.1701)
OKLCHoklch(32.44% 0.171 277)
XYZxyz(5.6058, 2.8617, 23.5447)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271888 #798818
analogous
#184188 #271888 #5F1888
triadic
#271888 #882718 #188827
tetradic
#271888 #881841 #798818 #18885F
square
#271888 #881841 #798818 #18885F
split-complementary
#271888 #885F18 #418818
monochromatic
#090620 #180F54 #271888 #3621BC #533EDD

Accessibility & contrast

On white

13.36
#271888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271888
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271888#FFFFFF#000000##FFFFFF
##2718881.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271888;
/* rgb */ color: rgb(39, 24, 136);
/* oklch */ color: oklch(32.4% 0.171 277.0);
Tailwind
colors: {
  custom: {
    50: '#7159ac',
    500: '#271888',
    950: '#000000',
  },
}
SCSS
$custom: #271888;
$custom-light: #7159ac;
$custom-dark: #000000;
JSON
{
  "hex": "#271888",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 248.036,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32443,
    "c": 0.17139,
    "h": 277
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271888

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

Preview Lab → · Contrast checker → · Palette generator →

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