#271880#271880

#271880 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.162 H 278.2°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#271880
RGBrgb(39, 24, 128)
HSLhsl(249, 68%, 30%)
HSVhsv(249, 81%, 50%)
CMYKcmyk(69.5%, 81.3%, 0%, 49.8%)
CIE-LABlab(18.55, 39.14, -55.36)
CIE-LCHlch(18.55, 67.80, 305.26°)
OKLaboklab(31.52% 0.0232 -0.1599)
OKLCHoklch(31.52% 0.162 278.2)
XYZxyz(5.0584, 2.6427, 20.6614)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271880 #718018
analogous
#183D80 #271880 #5B1880
triadic
#271880 #802718 #188027
tetradic
#271880 #80183D #718018 #18805B
square
#271880 #80183D #718018 #18805B
split-complementary
#271880 #805B18 #3D8018
monochromatic
#08051A #170E4C #271880 #3722B4 #5039DA

Accessibility & contrast

On white

13.74
#271880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271880
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271880#FFFFFF#000000##FFFFFF
##2718801.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271880;
/* rgb */ color: rgb(39, 24, 128);
/* oklch */ color: oklch(31.5% 0.162 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f58a6',
    500: '#271880',
    950: '#000000',
  },
}
SCSS
$custom: #271880;
$custom-light: #6f58a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271880",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 248.654,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31524,
    "c": 0.16158,
    "h": 278.2
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#271880
secondary
#A3B440
accent
#EB3DD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271880

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

Preview Lab → · Contrast checker → · Palette generator →

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