#271A8E#271A8E

#271A8E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.177 H 275.9°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#271A8E
RGBrgb(39, 26, 142)
HSLhsl(247, 69%, 33%)
HSVhsv(247, 82%, 56%)
CMYKcmyk(72.5%, 81.7%, 0%, 44.3%)
CIE-LABlab(20.53, 42.60, -60.89)
CIE-LCHlch(20.53, 74.31, 304.97°)
OKLaboklab(33.38% 0.0182 -0.176)
OKLCHoklch(33.38% 0.177 275.9)
XYZxyz(6.0870, 3.1225, 25.8679)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A8E #818E1A
analogous
#1A478E #271A8E #611A8E
triadic
#271A8E #8E271A #1A8E27
tetradic
#271A8E #8E1A47 #818E1A #1A8E61
square
#271A8E #8E1A47 #818E1A #1A8E61
split-complementary
#271A8E #8E611A #478E1A
monochromatic
#0B0727 #19115A #271A8E #3523C2 #5645DD

Accessibility & contrast

On white

12.93
#271A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A8E
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A8E#FFFFFF#000000##FFFFFF
##271A8E1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271a8e;
/* rgb */ color: rgb(39, 26, 142);
/* oklch */ color: oklch(33.4% 0.177 275.9);
Tailwind
colors: {
  custom: {
    50: '#735ab0',
    500: '#271a8e',
    950: '#000000',
  },
}
SCSS
$custom: #271a8e;
$custom-light: #735ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#271a8e",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 246.724,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33376,
    "c": 0.17696,
    "h": 275.9
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#271A8E
secondary
#B1BE45
accent
#EC3CD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271A8E

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

Preview Lab → · Contrast checker → · Palette generator →

#271A8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva