#271D69#271D69

#271D69 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.126 H 281.5°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#271D69
RGBrgb(39, 29, 105)
HSLhsl(248, 57%, 26%)
HSVhsv(248, 72%, 41%)
CMYKcmyk(62.9%, 72.4%, 0%, 58.8%)
CIE-LABlab(17.13, 28.54, -42.88)
CIE-LCHlch(17.13, 51.51, 303.65°)
OKLaboklab(29.78% 0.0251 -0.1235)
OKLCHoklch(29.78% 0.126 281.5)
XYZxyz(3.8251, 2.3297, 13.6100)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D69 #5F691D
analogous
#1D3969 #271D69 #4D1D69
triadic
#271D69 #69271D #1D6927
tetradic
#271D69 #691D39 #5F691D #1D694D
square
#271D69 #691D39 #5F691D #1D694D
split-complementary
#271D69 #694D1D #39691D
monochromatic
#090718 #151039 #271D69 #392A99 #4B38C8

Accessibility & contrast

On white

14.32
#271D69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271D69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D69
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D69#FFFFFF#000000##FFFFFF
##271D691.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6B
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271d69;
/* rgb */ color: rgb(39, 29, 105);
/* oklch */ color: oklch(29.8% 0.126 281.5);
Tailwind
colors: {
  custom: {
    50: '#6a5a95',
    500: '#271d69',
    950: '#000000',
  },
}
SCSS
$custom: #271d69;
$custom-light: #6a5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#271d69",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 105
  },
  "hsl": {
    "h": 247.895,
    "s": 56.716,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29782,
    "c": 0.12603,
    "h": 281.5
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#271D69
secondary
#929E44
accent
#E048CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271D69

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

Preview Lab → · Contrast checker → · Palette generator →

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