#271A7E#271A7E

#271A7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.157 H 278.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#271A7E
RGBrgb(39, 26, 126)
HSLhsl(248, 66%, 30%)
HSVhsv(248, 79%, 49%)
CMYKcmyk(69%, 79.4%, 0%, 50.6%)
CIE-LABlab(18.70, 37.43, -53.85)
CIE-LCHlch(18.70, 65.58, 304.80°)
OKLaboklab(31.56% 0.0226 -0.1555)
OKLCHoklch(31.56% 0.157 278.3)
XYZxyz(4.9708, 2.6761, 19.9892)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A7E #717E1A
analogous
#1A3F7E #271A7E #591A7E
triadic
#271A7E #7E271A #1A7E27
tetradic
#271A7E #7E1A3F #717E1A #1A7E59
square
#271A7E #7E1A3F #717E1A #1A7E59
split-complementary
#271A7E #7E591A #3F7E1A
monochromatic
#080519 #17104B #271A7E #3724B1 #503CD7

Accessibility & contrast

On white

13.68
#271A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A7E
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A7E#FFFFFF#000000##FFFFFF
##271A7E1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271a7e;
/* rgb */ color: rgb(39, 26, 126);
/* oklch */ color: oklch(31.6% 0.157 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f59a4',
    500: '#271a7e',
    950: '#000000',
  },
}
SCSS
$custom: #271a7e;
$custom-light: #6f59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#271a7e",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 247.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31558,
    "c": 0.15718,
    "h": 278.3
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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