#271885#271885

#271885 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.168 H 277.4°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#271885
RGBrgb(39, 24, 133)
HSLhsl(248, 69%, 31%)
HSVhsv(248, 82%, 52%)
CMYKcmyk(70.7%, 82%, 0%, 47.8%)
CIE-LABlab(19.13, 40.74, -57.56)
CIE-LCHlch(19.13, 70.52, 305.29°)
OKLaboklab(32.1% 0.0217 -0.1663)
OKLCHoklch(32.1% 0.168 277.4)
XYZxyz(5.3956, 2.7776, 22.4375)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271885 #768518
analogous
#183F85 #271885 #5D1885
triadic
#271885 #852718 #188527
tetradic
#271885 #85183F #768518 #18855D
square
#271885 #85183F #768518 #18855D
split-complementary
#271885 #855D18 #3F8518
monochromatic
#09051D #180F51 #271885 #3621B9 #523CDC

Accessibility & contrast

On white

13.50
#271885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271885
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271885#FFFFFF#000000##FFFFFF
##2718851.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271885;
/* rgb */ color: rgb(39, 24, 133);
/* oklch */ color: oklch(32.1% 0.168 277.4);
Tailwind
colors: {
  custom: {
    50: '#7158aa',
    500: '#271885',
    950: '#000000',
  },
}
SCSS
$custom: #271885;
$custom-light: #7158aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271885",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 248.257,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32097,
    "c": 0.16773,
    "h": 277.4
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#271885
secondary
#A8B940
accent
#EC3CD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271885

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

Preview Lab → · Contrast checker → · Palette generator →

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