#271D5E#271D5E

#271D5E is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.7% C 0.110 H 284.0°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#271D5E
RGBrgb(39, 29, 94)
HSLhsl(249, 53%, 24%)
HSVhsv(249, 69%, 37%)
CMYKcmyk(58.5%, 69.1%, 0%, 63.1%)
CIE-LABlab(16.09, 24.71, -37.31)
CIE-LCHlch(16.09, 44.75, 303.51°)
OKLaboklab(28.72% 0.0268 -0.1072)
OKLCHoklch(28.72% 0.11 284)
XYZxyz(3.2958, 2.1180, 10.8227)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D5E #545E1D
analogous
#1D345E #271D5E #481D5E
triadic
#271D5E #5E271D #1D5E27
tetradic
#271D5E #5E1D34 #545E1D #1D5E48
square
#271D5E #5E1D34 #545E1D #1D5E48
split-complementary
#271D5E #5E481D #345E1D
monochromatic
#0A0717 #140F2F #271D5E #3A2B8D #4E3ABC

Accessibility & contrast

On white

14.75
#271D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D5E
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D5E#FFFFFF#000000##FFFFFF
##271D5E1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#0E2D3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271d5e;
/* rgb */ color: rgb(39, 29, 94);
/* oklch */ color: oklch(28.7% 0.110 284.0);
Tailwind
colors: {
  custom: {
    50: '#68598c',
    500: '#271d5e',
    950: '#000000',
  },
}
SCSS
$custom: #271d5e;
$custom-light: #68598c;
$custom-dark: #000000;
JSON
{
  "hex": "#271d5e",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 249.231,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28715,
    "c": 0.11045,
    "h": 284
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#271D5E
secondary
#879344
accent
#DC4CC6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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