#271A73#271A73

#271A73 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.143 H 280.2°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#271A73
RGBrgb(39, 26, 115)
HSLhsl(249, 63%, 28%)
HSVhsv(249, 77%, 45%)
CMYKcmyk(66.1%, 77.4%, 0%, 54.9%)
CIE-LABlab(17.50, 33.78, -48.78)
CIE-LCHlch(17.50, 59.33, 304.70°)
OKLaboklab(30.35% 0.0255 -0.1408)
OKLCHoklch(30.35% 0.143 280.2)
XYZxyz(4.2996, 2.4076, 16.4545)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A73 #66731A
analogous
#1A3973 #271A73 #531A73
triadic
#271A73 #73271A #1A7327
tetradic
#271A73 #731A39 #66731A #1A7353
square
#271A73 #731A39 #66731A #1A7353
split-complementary
#271A73 #73531A #39731A
monochromatic
#080619 #160F41 #271A73 #3825A5 #4D36D2

Accessibility & contrast

On white

14.17
#271A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A73
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A73#FFFFFF#000000##FFFFFF
##271A731.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271a73;
/* rgb */ color: rgb(39, 26, 115);
/* oklch */ color: oklch(30.4% 0.143 280.2);
Tailwind
colors: {
  custom: {
    50: '#6c589c',
    500: '#271a73',
    950: '#000000',
  },
}
SCSS
$custom: #271a73;
$custom-light: #6c589c;
$custom-dark: #000000;
JSON
{
  "hex": "#271a73",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 248.764,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30353,
    "c": 0.14304,
    "h": 280.2
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#271A73
secondary
#99A841
accent
#E642CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271A73

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

Preview Lab → · Contrast checker → · Palette generator →

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