#271A75#271A75

#271A75 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.146 H 279.9°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#271A75
RGBrgb(39, 26, 117)
HSLhsl(249, 64%, 28%)
HSVhsv(249, 78%, 46%)
CMYKcmyk(66.7%, 77.8%, 0%, 54.1%)
CIE-LABlab(17.71, 34.45, -49.72)
CIE-LCHlch(17.71, 60.48, 304.72°)
OKLaboklab(30.57% 0.025 -0.1435)
OKLCHoklch(30.57% 0.146 279.9)
XYZxyz(4.4160, 2.4541, 17.0672)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A75 #68751A
analogous
#1A3B75 #271A75 #541A75
triadic
#271A75 #75271A #1A7527
tetradic
#271A75 #751A3B #68751A #1A7554
square
#271A75 #751A3B #68751A #1A7554
split-complementary
#271A75 #75541A #3B751A
monochromatic
#080619 #160F43 #271A75 #3825A7 #4D37D3

Accessibility & contrast

On white

14.09
#271A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A75
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A75#FFFFFF#000000##FFFFFF
##271A751.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271a75;
/* rgb */ color: rgb(39, 26, 117);
/* oklch */ color: oklch(30.6% 0.146 279.9);
Tailwind
colors: {
  custom: {
    50: '#6d599e',
    500: '#271a75',
    950: '#000000',
  },
}
SCSS
$custom: #271a75;
$custom-light: #6d599e;
$custom-dark: #000000;
JSON
{
  "hex": "#271a75",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 248.571,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30569,
    "c": 0.14564,
    "h": 279.9
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#271A75
secondary
#9BAA41
accent
#E741CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271A75

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

Preview Lab → · Contrast checker → · Palette generator →

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