#271D7C#271D7C

#271D7C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.152 H 278.1°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#271D7C
RGBrgb(39, 29, 124)
HSLhsl(246, 62%, 30%)
HSVhsv(246, 77%, 49%)
CMYKcmyk(68.5%, 76.6%, 0%, 51.4%)
CIE-LABlab(19.08, 35.06, -51.95)
CIE-LCHlch(19.08, 62.67, 304.02°)
OKLaboklab(31.76% 0.0213 -0.15)
OKLCHoklch(31.76% 0.152 278.1)
XYZxyz(4.9130, 2.7649, 19.3396)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D7C #727C1D
analogous
#1D427C #271D7C #571D7C
triadic
#271D7C #7C271D #1D7C27
tetradic
#271D7C #7C1D42 #727C1D #1D7C57
square
#271D7C #7C1D42 #727C1D #1D7C57
split-complementary
#271D7C #7C571D #427C1D
monochromatic
#080619 #17114A #271D7C #3729AE #5041D3

Accessibility & contrast

On white

13.52
#271D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D7C
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D7C#FFFFFF#000000##FFFFFF
##271D7C1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271d7c;
/* rgb */ color: rgb(39, 29, 124);
/* oklch */ color: oklch(31.8% 0.152 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e5ba3',
    500: '#271d7c',
    950: '#000000',
  },
}
SCSS
$custom: #271d7c;
$custom-light: #6e5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#271d7c",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 246.316,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.3176,
    "c": 0.15153,
    "h": 278.1
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#271D7C
secondary
#A4B045
accent
#E543D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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