#271D63#271D63

#271D63 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.2% C 0.118 H 282.8°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#271D63
RGBrgb(39, 29, 99)
HSLhsl(249, 55%, 25%)
HSVhsv(249, 71%, 39%)
CMYKcmyk(60.6%, 70.7%, 0%, 61.2%)
CIE-LABlab(16.56, 26.45, -39.87)
CIE-LCHlch(16.56, 47.85, 303.56°)
OKLaboklab(29.19% 0.0261 -0.1147)
OKLCHoklch(29.19% 0.118 282.8)
XYZxyz(3.5275, 2.2107, 12.0428)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D63 #59631D
analogous
#1D3663 #271D63 #4A1D63
triadic
#271D63 #63271D #1D6327
tetradic
#271D63 #631D36 #59631D #1D634A
square
#271D63 #631D36 #59631D #1D634A
split-complementary
#271D63 #634A1D #36631D
monochromatic
#090718 #140F34 #271D63 #3A2B92 #4C39C2

Accessibility & contrast

On white

14.56
#271D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D63
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D63#FFFFFF#000000##FFFFFF
##271D631.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#072F3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271d63;
/* rgb */ color: rgb(39, 29, 99);
/* oklch */ color: oklch(29.2% 0.118 282.8);
Tailwind
colors: {
  custom: {
    50: '#695a90',
    500: '#271d63',
    950: '#000000',
  },
}
SCSS
$custom: #271d63;
$custom-light: #695a90;
$custom-dark: #000000;
JSON
{
  "hex": "#271d63",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 99
  },
  "hsl": {
    "h": 248.571,
    "s": 54.688,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29192,
    "c": 0.11762,
    "h": 282.8
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#271D63
secondary
#8C9844
accent
#DE4AC9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #271D63

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

Preview Lab → · Contrast checker → · Palette generator →

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