#271F5E#271F5E

#271F5E is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.1% C 0.108 H 283.2°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#271F5E
RGBrgb(39, 31, 94)
HSLhsl(248, 50%, 25%)
HSVhsv(248, 67%, 37%)
CMYKcmyk(58.5%, 67%, 0%, 63.1%)
CIE-LABlab(16.60, 23.37, -36.49)
CIE-LCHlch(16.60, 43.33, 302.63°)
OKLaboklab(29.08% 0.0246 -0.1047)
OKLCHoklch(29.08% 0.108 283.2)
XYZxyz(3.3464, 2.2193, 10.8395)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F5E #565E1F
analogous
#1F375E #271F5E #471F5E
triadic
#271F5E #5E271F #1F5E27
tetradic
#271F5E #5E1F37 #565E1F #1F5E47
square
#271F5E #5E1F37 #565E1F #1F5E47
split-complementary
#271F5E #5E471F #375E1F
monochromatic
#0A0817 #141030 #271F5E #3A2E8C #4D3DBA

Accessibility & contrast

On white

14.54
#271F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F5E
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F5E#FFFFFF#000000##FFFFFF
##271F5E1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#0E2E3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271f5e;
/* rgb */ color: rgb(39, 31, 94);
/* oklch */ color: oklch(29.1% 0.108 283.2);
Tailwind
colors: {
  custom: {
    50: '#675b8c',
    500: '#271f5e',
    950: '#000000',
  },
}
SCSS
$custom: #271f5e;
$custom-light: #675b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#271f5e",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 247.619,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29081,
    "c": 0.10759,
    "h": 283.2
  },
  "luminance": 0.02219
}

Semantic roles & 50–950 ramp

primary
#271F5E
secondary
#899346
accent
#DA4EC8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #271F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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