#271E66#271E66

#271E66 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.121 H 281.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#271E66
RGBrgb(39, 30, 102)
HSLhsl(248, 55%, 26%)
HSVhsv(248, 71%, 40%)
CMYKcmyk(61.8%, 70.6%, 0%, 60%)
CIE-LABlab(17.08, 26.85, -40.99)
CIE-LCHlch(17.08, 49.01, 303.23°)
OKLaboklab(29.66% 0.0247 -0.118)
OKLCHoklch(29.66% 0.121 281.8)
XYZxyz(3.6985, 2.3189, 12.8205)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E66 #5D661E
analogous
#1E3966 #271E66 #4B1E66
triadic
#271E66 #66271E #1E6627
tetradic
#271E66 #661E39 #5D661E #1E664B
square
#271E66 #661E39 #5D661E #1E664B
split-complementary
#271E66 #664B1E #39661E
monochromatic
#090718 #151037 #271E66 #392C95 #4B3AC5

Accessibility & contrast

On white

14.35
#271E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E66
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E66#FFFFFF#000000##FFFFFF
##271E661.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#02303F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271e66;
/* rgb */ color: rgb(39, 30, 102);
/* oklch */ color: oklch(29.7% 0.121 281.8);
Tailwind
colors: {
  custom: {
    50: '#695a92',
    500: '#271e66',
    950: '#000000',
  },
}
SCSS
$custom: #271e66;
$custom-light: #695a92;
$custom-dark: #000000;
JSON
{
  "hex": "#271e66",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 102
  },
  "hsl": {
    "h": 247.5,
    "s": 54.545,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29657,
    "c": 0.12053,
    "h": 281.8
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#271E66
secondary
#909B45
accent
#DE4ACB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271E66

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

Preview Lab → · Contrast checker → · Palette generator →

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