#271E59#271E59

#271E59 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.4% C 0.102 H 284.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#271E59
RGBrgb(39, 30, 89)
HSLhsl(249, 50%, 23%)
HSVhsv(249, 66%, 35%)
CMYKcmyk(56.2%, 66.3%, 0%, 65.1%)
CIE-LABlab(15.91, 22.28, -34.27)
CIE-LCHlch(15.91, 40.88, 303.03°)
OKLaboklab(28.44% 0.0261 -0.0982)
OKLCHoklch(28.44% 0.102 284.9)
XYZxyz(3.1036, 2.0810, 9.6874)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E59 #50591E
analogous
#1E3259 #271E59 #441E59
triadic
#271E59 #59271E #1E5927
tetradic
#271E59 #591E32 #50591E #1E5944
square
#271E59 #591E32 #50591E #1E5944
split-complementary
#271E59 #59441E #32591E
monochromatic
#0A0817 #130F2B #271E59 #3B2D87 #4F3DB5

Accessibility & contrast

On white

14.83
#271E59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271E59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E59
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E59#FFFFFF#000000##FFFFFF
##271E591.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#132C38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271e59;
/* rgb */ color: rgb(39, 30, 89);
/* oklch */ color: oklch(28.4% 0.102 284.9);
Tailwind
colors: {
  custom: {
    50: '#665a88',
    500: '#271e59',
    950: '#000000',
  },
}
SCSS
$custom: #271e59;
$custom-light: #665a88;
$custom-dark: #000000;
JSON
{
  "hex": "#271e59",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 89
  },
  "hsl": {
    "h": 249.153,
    "s": 49.58,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28439,
    "c": 0.10165,
    "h": 284.9
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#271E59
secondary
#838E45
accent
#D94FC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #271E59

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

Preview Lab → · Contrast checker → · Palette generator →

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