#271E58#271E58

#271E58 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.100 H 285.1°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#271E58
RGBrgb(39, 30, 88)
HSLhsl(249, 49%, 23%)
HSVhsv(249, 66%, 35%)
CMYKcmyk(55.7%, 65.9%, 0%, 65.5%)
CIE-LABlab(15.82, 21.93, -33.74)
CIE-LCHlch(15.82, 40.24, 303.03°)
OKLaboklab(28.35% 0.0262 -0.0967)
OKLCHoklch(28.35% 0.1 285.1)
XYZxyz(3.0619, 2.0643, 9.4677)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E58 #4F581E
analogous
#1E3258 #271E58 #441E58
triadic
#271E58 #58271E #1E5827
tetradic
#271E58 #581E32 #4F581E #1E5844
square
#271E58 #581E32 #4F581E #1E5844
split-complementary
#271E58 #58441E #32581E
monochromatic
#0A0817 #130E2A #271E58 #3B2E86 #4F3DB3

Accessibility & contrast

On white

14.86
#271E58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271E58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E58
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E58#FFFFFF#000000##FFFFFF
##271E581.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#142C37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271e58;
/* rgb */ color: rgb(39, 30, 88);
/* oklch */ color: oklch(28.3% 0.100 285.1);
Tailwind
colors: {
  custom: {
    50: '#665a88',
    500: '#271e58',
    950: '#000000',
  },
}
SCSS
$custom: #271e58;
$custom-light: #665a88;
$custom-dark: #000000;
JSON
{
  "hex": "#271e58",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 88
  },
  "hsl": {
    "h": 249.31,
    "s": 49.153,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2835,
    "c": 0.10015,
    "h": 285.1
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#271E58
secondary
#828D45
accent
#D94FC3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #271E58

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

Preview Lab → · Contrast checker → · Palette generator →

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