#271A8C#271A8C

#271A8C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.175 H 276.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#271A8C
RGBrgb(39, 26, 140)
HSLhsl(247, 69%, 33%)
HSVhsv(247, 81%, 55%)
CMYKcmyk(72.1%, 81.4%, 0%, 45.1%)
CIE-LABlab(20.29, 41.96, -60.03)
CIE-LCHlch(20.29, 73.24, 304.95°)
OKLaboklab(33.15% 0.0188 -0.1735)
OKLCHoklch(33.15% 0.175 276.2)
XYZxyz(5.9382, 3.0630, 25.0841)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A8C #7F8C1A
analogous
#1A468C #271A8C #601A8C
triadic
#271A8C #8C271A #1A8C27
tetradic
#271A8C #8C1A46 #7F8C1A #1A8C60
square
#271A8C #8C1A46 #7F8C1A #1A8C60
split-complementary
#271A8C #8C601A #468C1A
monochromatic
#0A0725 #191058 #271A8C #3524C0 #5544DC

Accessibility & contrast

On white

13.02
#271A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A8C
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A8C#FFFFFF#000000##FFFFFF
##271A8C1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271a8c;
/* rgb */ color: rgb(39, 26, 140);
/* oklch */ color: oklch(33.1% 0.175 276.2);
Tailwind
colors: {
  custom: {
    50: '#725aaf',
    500: '#271a8c',
    950: '#000000',
  },
}
SCSS
$custom: #271a8c;
$custom-light: #725aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#271a8c",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 246.842,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33146,
    "c": 0.17453,
    "h": 276.2
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#271A8C
secondary
#B0BE44
accent
#EC3CD8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #271A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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