#271E5A#271E5A

#271E5A is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.103 H 284.6°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#271E5A
RGBrgb(39, 30, 90)
HSLhsl(249, 50%, 24%)
HSVhsv(249, 67%, 35%)
CMYKcmyk(56.7%, 66.7%, 0%, 64.7%)
CIE-LABlab(15.99, 22.64, -34.80)
CIE-LCHlch(15.99, 41.52, 303.04°)
OKLaboklab(28.53% 0.026 -0.0998)
OKLCHoklch(28.53% 0.103 284.6)
XYZxyz(3.1459, 2.0979, 9.9100)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E5A #515A1E
analogous
#1E335A #271E5A #451E5A
triadic
#271E5A #5A271E #1E5A27
tetradic
#271E5A #5A1E33 #515A1E #1E5A45
square
#271E5A #5A1E33 #515A1E #1E5A45
split-complementary
#271E5A #5A451E #335A1E
monochromatic
#0A0817 #130F2C #271E5A #3B2D88 #4F3DB6

Accessibility & contrast

On white

14.79
#271E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E5A
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E5A#FFFFFF#000000##FFFFFF
##271E5A1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#122C38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271e5a;
/* rgb */ color: rgb(39, 30, 90);
/* oklch */ color: oklch(28.5% 0.103 284.6);
Tailwind
colors: {
  custom: {
    50: '#675a89',
    500: '#271e5a',
    950: '#000000',
  },
}
SCSS
$custom: #271e5a;
$custom-light: #675a89;
$custom-dark: #000000;
JSON
{
  "hex": "#271e5a",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 90
  },
  "hsl": {
    "h": 249,
    "s": 50,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28529,
    "c": 0.10314,
    "h": 284.6
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#271E5A
secondary
#848F45
accent
#DA4EC5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #271E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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