#271E67#271E67

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

Color values

HEX#271E67
RGBrgb(39, 30, 103)
HSLhsl(247, 55%, 26%)
HSVhsv(247, 71%, 40%)
CMYKcmyk(62.1%, 70.9%, 0%, 59.6%)
CIE-LABlab(17.17, 27.20, -41.50)
CIE-LCHlch(17.17, 49.62, 303.25°)
OKLaboklab(29.76% 0.0245 -0.1194)
OKLCHoklch(29.76% 0.122 281.6)
XYZxyz(3.7484, 2.3389, 13.0833)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E67 #5E671E
analogous
#1E3967 #271E67 #4B1E67
triadic
#271E67 #67271E #1E6727
tetradic
#271E67 #671E39 #5E671E #1E674B
square
#271E67 #671E39 #5E671E #1E674B
split-complementary
#271E67 #674B1E #39671E
monochromatic
#090718 #151038 #271E67 #392C96 #4B3AC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271E67#FFFFFF#000000##FFFFFF
##271E671.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)
#002D69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#01313F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271e67;
/* rgb */ color: rgb(39, 30, 103);
/* oklch */ color: oklch(29.8% 0.122 281.6);
Tailwind
colors: {
  custom: {
    50: '#695a93',
    500: '#271e67',
    950: '#000000',
  },
}
SCSS
$custom: #271e67;
$custom-light: #695a93;
$custom-dark: #000000;
JSON
{
  "hex": "#271e67",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 103
  },
  "hsl": {
    "h": 247.397,
    "s": 54.887,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29755,
    "c": 0.12194,
    "h": 281.6
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#271E67
secondary
#919C45
accent
#DE4ACC
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271E67

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

Preview Lab → · Contrast checker → · Palette generator →

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