#271A7C#271A7C

#271A7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.155 H 278.6°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#271A7C
RGBrgb(39, 26, 124)
HSLhsl(248, 65%, 29%)
HSVhsv(248, 79%, 49%)
CMYKcmyk(68.5%, 79%, 0%, 51.4%)
CIE-LABlab(18.47, 36.77, -52.94)
CIE-LCHlch(18.47, 64.45, 304.78°)
OKLaboklab(31.34% 0.0232 -0.1529)
OKLCHoklch(31.34% 0.155 278.6)
XYZxyz(4.8430, 2.6250, 19.3163)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A7C #6F7C1A
analogous
#1A3E7C #271A7C #581A7C
triadic
#271A7C #7C271A #1A7C27
tetradic
#271A7C #7C1A3E #6F7C1A #1A7C58
square
#271A7C #7C1A3E #6F7C1A #1A7C58
split-complementary
#271A7C #7C581A #3E7C1A
monochromatic
#080519 #170F49 #271A7C #3725AF #4F3BD6

Accessibility & contrast

On white

13.77
#271A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A7C
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A7C#FFFFFF#000000##FFFFFF
##271A7C1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271a7c;
/* rgb */ color: rgb(39, 26, 124);
/* oklch */ color: oklch(31.3% 0.155 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e59a3',
    500: '#271a7c',
    950: '#000000',
  },
}
SCSS
$custom: #271a7c;
$custom-light: #6e59a3;
$custom-dark: #000000;
JSON
{
  "hex": "#271a7c",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 247.959,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31336,
    "c": 0.15463,
    "h": 278.6
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#271A7C
secondary
#A2B042
accent
#E840D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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