#271A8F#271A8F

#271A8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.178 H 275.8°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#271A8F
RGBrgb(39, 26, 143)
HSLhsl(247, 69%, 33%)
HSVhsv(247, 82%, 56%)
CMYKcmyk(72.7%, 81.8%, 0%, 43.9%)
CIE-LABlab(20.65, 42.91, -61.32)
CIE-LCHlch(20.65, 74.84, 304.99°)
OKLaboklab(33.49% 0.018 -0.1773)
OKLCHoklch(33.49% 0.178 275.8)
XYZxyz(6.1624, 3.1527, 26.2650)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A8F #828F1A
analogous
#1A478F #271A8F #611A8F
triadic
#271A8F #8F271A #1A8F27
tetradic
#271A8F #8F1A47 #828F1A #1A8F61
square
#271A8F #8F1A47 #828F1A #1A8F61
split-complementary
#271A8F #8F611A #478F1A
monochromatic
#0B0727 #19115B #271A8F #3523C3 #5746DD

Accessibility & contrast

On white

12.88
#271A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A8F
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A8F#FFFFFF#000000##FFFFFF
##271A8F1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271a8f;
/* rgb */ color: rgb(39, 26, 143);
/* oklch */ color: oklch(33.5% 0.178 275.8);
Tailwind
colors: {
  custom: {
    50: '#735ab1',
    500: '#271a8f',
    950: '#000000',
  },
}
SCSS
$custom: #271a8f;
$custom-light: #735ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#271a8f",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 246.667,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33492,
    "c": 0.17818,
    "h": 275.8
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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