#271A7F#271A7F

#271A7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.158 H 278.1°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#271A7F
RGBrgb(39, 26, 127)
HSLhsl(248, 66%, 30%)
HSVhsv(248, 80%, 50%)
CMYKcmyk(69.3%, 79.5%, 0%, 50.2%)
CIE-LABlab(18.81, 37.75, -54.30)
CIE-LCHlch(18.81, 66.13, 304.81°)
OKLaboklab(31.67% 0.0223 -0.1568)
OKLCHoklch(31.67% 0.158 278.1)
XYZxyz(5.0356, 2.7020, 20.3307)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A7F #727F1A
analogous
#1A3F7F #271A7F #5A1A7F
triadic
#271A7F #7F271A #1A7F27
tetradic
#271A7F #7F1A3F #727F1A #1A7F5A
square
#271A7F #7F1A3F #727F1A #1A7F5A
split-complementary
#271A7F #7F5A1A #3F7F1A
monochromatic
#080519 #17104C #271A7F #3724B2 #503CD7

Accessibility & contrast

On white

13.63
#271A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A7F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A7F#FFFFFF#000000##FFFFFF
##271A7F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271a7f;
/* rgb */ color: rgb(39, 26, 127);
/* oklch */ color: oklch(31.7% 0.158 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f59a5',
    500: '#271a7f',
    950: '#000000',
  },
}
SCSS
$custom: #271a7f;
$custom-light: #6f59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#271a7f",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 247.723,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.3167,
    "c": 0.15843,
    "h": 278.1
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#271A7F
secondary
#A4B342
accent
#E93FD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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