#271A70#271A70

#271A70 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.139 H 280.8°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#271A70
RGBrgb(39, 26, 112)
HSLhsl(249, 62%, 27%)
HSVhsv(249, 77%, 44%)
CMYKcmyk(65.2%, 76.8%, 0%, 56.1%)
CIE-LABlab(17.18, 32.77, -47.36)
CIE-LCHlch(17.18, 57.59, 304.68°)
OKLaboklab(30.03% 0.0262 -0.1366)
OKLCHoklch(30.03% 0.139 280.8)
XYZxyz(4.1298, 2.3397, 15.5601)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A70 #63701A
analogous
#1A3870 #271A70 #521A70
triadic
#271A70 #70271A #1A7027
tetradic
#271A70 #701A38 #63701A #1A7052
square
#271A70 #701A38 #63701A #1A7052
split-complementary
#271A70 #70521A #38701A
monochromatic
#090619 #160E3E #271A70 #3826A2 #4C34D0

Accessibility & contrast

On white

14.31
#271A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A70
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A70#FFFFFF#000000##FFFFFF
##271A701.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271a70;
/* rgb */ color: rgb(39, 26, 112);
/* oklch */ color: oklch(30.0% 0.139 280.8);
Tailwind
colors: {
  custom: {
    50: '#6c589a',
    500: '#271a70',
    950: '#000000',
  },
}
SCSS
$custom: #271a70;
$custom-light: #6c589a;
$custom-dark: #000000;
JSON
{
  "hex": "#271a70",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 249.07,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30032,
    "c": 0.1391,
    "h": 280.8
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#271A70
secondary
#96A541
accent
#E542CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #271A70

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

Preview Lab → · Contrast checker → · Palette generator →

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