#271E60#271E60

#271E60 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.1% C 0.112 H 283.1°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#271E60
RGBrgb(39, 30, 96)
HSLhsl(248, 52%, 25%)
HSVhsv(248, 69%, 38%)
CMYKcmyk(59.4%, 68.7%, 0%, 62.4%)
CIE-LABlab(16.52, 24.74, -37.94)
CIE-LCHlch(16.52, 45.29, 303.11°)
OKLaboklab(29.08% 0.0255 -0.109)
OKLCHoklch(29.08% 0.112 283.1)
XYZxyz(3.4116, 2.2042, 11.3097)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E60 #57601E
analogous
#1E3660 #271E60 #481E60
triadic
#271E60 #60271E #1E6027
tetradic
#271E60 #601E36 #57601E #1E6048
square
#271E60 #601E36 #57601E #1E6048
split-complementary
#271E60 #60481E #36601E
monochromatic
#090717 #140F31 #271E60 #3A2D8F #4D3BBD

Accessibility & contrast

On white

14.58
#271E60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271E60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E60
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E60#FFFFFF#000000##FFFFFF
##271E601.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#0C2E3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271e60;
/* rgb */ color: rgb(39, 30, 96);
/* oklch */ color: oklch(29.1% 0.112 283.1);
Tailwind
colors: {
  custom: {
    50: '#685a8e',
    500: '#271e60',
    950: '#000000',
  },
}
SCSS
$custom: #271e60;
$custom-light: #685a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#271e60",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 96
  },
  "hsl": {
    "h": 248.182,
    "s": 52.381,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29083,
    "c": 0.11194,
    "h": 283.1
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#271E60
secondary
#8A9545
accent
#DC4CC8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #271E60

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

Preview Lab → · Contrast checker → · Palette generator →

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