#271685#271685

#271685 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.169 H 277.7°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#271685
RGBrgb(39, 22, 133)
HSLhsl(249, 72%, 30%)
HSVhsv(249, 83%, 52%)
CMYKcmyk(70.7%, 83.5%, 0%, 47.8%)
CIE-LABlab(18.79, 41.73, -58.12)
CIE-LCHlch(18.79, 71.55, 305.67°)
OKLaboklab(31.86% 0.0227 -0.1679)
OKLCHoklch(31.86% 0.169 277.7)
XYZxyz(5.3559, 2.6981, 22.4243)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271685 #748516
analogous
#163D85 #271685 #5E1685
triadic
#271685 #852716 #168527
tetradic
#271685 #85163D #748516 #16855E
square
#271685 #85163D #748516 #16855E
split-complementary
#271685 #855E16 #3D8516
monochromatic
#08051C #180D50 #271685 #361FBA #5137DE

Accessibility & contrast

On white

13.64
#271685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271685
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271685#FFFFFF#000000##FFFFFF
##2716851.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002983
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271685;
/* rgb */ color: rgb(39, 22, 133);
/* oklch */ color: oklch(31.9% 0.169 277.7);
Tailwind
colors: {
  custom: {
    50: '#7157aa',
    500: '#271685',
    950: '#000000',
  },
}
SCSS
$custom: #271685;
$custom-light: #7157aa;
$custom-dark: #000000;
JSON
{
  "hex": "#271685",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 249.189,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31862,
    "c": 0.16944,
    "h": 277.7
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#271685
secondary
#A6B93E
accent
#EE39D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271685

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

Preview Lab → · Contrast checker → · Palette generator →

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