#271E69#271E69

#271E69 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.125 H 281.2°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#271E69
RGBrgb(39, 30, 105)
HSLhsl(247, 56%, 26%)
HSVhsv(247, 71%, 41%)
CMYKcmyk(62.9%, 71.4%, 0%, 58.8%)
CIE-LABlab(17.36, 27.90, -42.49)
CIE-LCHlch(17.36, 50.84, 303.29°)
OKLaboklab(29.95% 0.0242 -0.1224)
OKLCHoklch(29.95% 0.125 281.2)
XYZxyz(3.8500, 2.3795, 13.6183)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E69 #60691E
analogous
#1E3B69 #271E69 #4D1E69
triadic
#271E69 #69271E #1E6927
tetradic
#271E69 #691E3B #60691E #1E694D
square
#271E69 #691E3B #60691E #1E694D
split-complementary
#271E69 #694D1E #3B691E
monochromatic
#090718 #151039 #271E69 #392C99 #4B3BC7

Accessibility & contrast

On white

14.23
#271E69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E69
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E69#FFFFFF#000000##FFFFFF
##271E691.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6B
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#003240
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271e69;
/* rgb */ color: rgb(39, 30, 105);
/* oklch */ color: oklch(30.0% 0.125 281.2);
Tailwind
colors: {
  custom: {
    50: '#6a5b95',
    500: '#271e69',
    950: '#000000',
  },
}
SCSS
$custom: #271e69;
$custom-light: #6a5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#271e69",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 105
  },
  "hsl": {
    "h": 247.2,
    "s": 55.556,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29951,
    "c": 0.12476,
    "h": 281.2
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#271E69
secondary
#939E45
accent
#DF49CD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271E69

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

Preview Lab → · Contrast checker → · Palette generator →

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