#271D67#271D67

#271D67 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.123 H 281.9°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#271D67
RGBrgb(39, 29, 103)
HSLhsl(248, 56%, 26%)
HSVhsv(248, 72%, 40%)
CMYKcmyk(62.1%, 71.8%, 0%, 59.6%)
CIE-LABlab(16.94, 27.85, -41.88)
CIE-LCHlch(16.94, 50.30, 303.62°)
OKLaboklab(29.58% 0.0255 -0.1206)
OKLCHoklch(29.58% 0.123 281.9)
XYZxyz(3.7235, 2.2891, 13.0750)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D67 #5D671D
analogous
#1D3867 #271D67 #4C1D67
triadic
#271D67 #67271D #1D6727
tetradic
#271D67 #671D38 #5D671D #1D674C
square
#271D67 #671D38 #5D671D #1D674C
split-complementary
#271D67 #674C1D #38671D
monochromatic
#090718 #151037 #271D67 #392A97 #4B38C7

Accessibility & contrast

On white

14.41
#271D67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271D67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D67
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D67#FFFFFF#000000##FFFFFF
##271D671.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#01303F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271d67;
/* rgb */ color: rgb(39, 29, 103);
/* oklch */ color: oklch(29.6% 0.123 281.9);
Tailwind
colors: {
  custom: {
    50: '#695a93',
    500: '#271d67',
    950: '#000000',
  },
}
SCSS
$custom: #271d67;
$custom-light: #695a93;
$custom-dark: #000000;
JSON
{
  "hex": "#271d67",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 103
  },
  "hsl": {
    "h": 248.108,
    "s": 56.061,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29584,
    "c": 0.12325,
    "h": 281.9
  },
  "luminance": 0.02289
}

Semantic roles & 50–950 ramp

primary
#271D67
secondary
#909C44
accent
#DF48CB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271D67

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

Preview Lab → · Contrast checker → · Palette generator →

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