#271D68#271D68

#271D68 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.125 H 281.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#271D68
RGBrgb(39, 29, 104)
HSLhsl(248, 56%, 26%)
HSVhsv(248, 72%, 41%)
CMYKcmyk(62.5%, 72.1%, 0%, 59.2%)
CIE-LABlab(17.03, 28.19, -42.38)
CIE-LCHlch(17.03, 50.90, 303.63°)
OKLaboklab(29.68% 0.0253 -0.122)
OKLCHoklch(29.68% 0.125 281.7)
XYZxyz(3.7740, 2.3093, 13.3409)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D68 #5E681D
analogous
#1D3868 #271D68 #4C1D68
triadic
#271D68 #68271D #1D6827
tetradic
#271D68 #681D38 #5E681D #1D684C
square
#271D68 #681D38 #5E681D #1D684C
split-complementary
#271D68 #684C1D #38681D
monochromatic
#090718 #151038 #271D68 #392A98 #4B38C7

Accessibility & contrast

On white

14.36
#271D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D68
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D68#FFFFFF#000000##FFFFFF
##271D681.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d68;
/* rgb */ color: rgb(39, 29, 104);
/* oklch */ color: oklch(29.7% 0.125 281.7);
Tailwind
colors: {
  custom: {
    50: '#6a5a94',
    500: '#271d68',
    950: '#000000',
  },
}
SCSS
$custom: #271d68;
$custom-light: #6a5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#271d68",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 248,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29683,
    "c": 0.12465,
    "h": 281.7
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#271D68
secondary
#919D44
accent
#E048CB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271D68

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

Preview Lab → · Contrast checker → · Palette generator →

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