#271F5C#271F5C

#271F5C is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.105 H 283.7°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#271F5C
RGBrgb(39, 31, 92)
HSLhsl(248, 50%, 24%)
HSVhsv(248, 66%, 36%)
CMYKcmyk(57.6%, 66.3%, 0%, 63.9%)
CIE-LABlab(16.42, 22.66, -35.44)
CIE-LCHlch(16.42, 42.07, 302.60°)
OKLaboklab(28.9% 0.0247 -0.1017)
OKLCHoklch(28.9% 0.105 283.7)
XYZxyz(3.2579, 2.1838, 10.3730)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F5C #545C1F
analogous
#1F365C #271F5C #461F5C
triadic
#271F5C #5C271F #1F5C27
tetradic
#271F5C #5C1F36 #545C1F #1F5C46
square
#271F5C #5C1F36 #545C1F #1F5C46
split-complementary
#271F5C #5C461F #365C1F
monochromatic
#0A0817 #14102E #271F5C #3A2E8A #4E3EB8

Accessibility & contrast

On white

14.62
#271F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F5C
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F5C#FFFFFF#000000##FFFFFF
##271F5C1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#102E3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271f5c;
/* rgb */ color: rgb(39, 31, 92);
/* oklch */ color: oklch(28.9% 0.105 283.7);
Tailwind
colors: {
  custom: {
    50: '#675b8b',
    500: '#271f5c',
    950: '#000000',
  },
}
SCSS
$custom: #271f5c;
$custom-light: #675b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#271f5c",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 247.869,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28899,
    "c": 0.10463,
    "h": 283.7
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#271F5C
secondary
#879146
accent
#D94FC7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #271F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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