#271D6E#271D6E

#271D6E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.133 H 280.5°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#271D6E
RGBrgb(39, 29, 110)
HSLhsl(247, 58%, 27%)
HSVhsv(247, 74%, 43%)
CMYKcmyk(64.5%, 73.6%, 0%, 56.9%)
CIE-LABlab(17.62, 30.27, -45.33)
CIE-LCHlch(17.62, 54.51, 303.74°)
OKLaboklab(30.29% 0.0242 -0.1307)
OKLCHoklch(30.29% 0.133 280.5)
XYZxyz(4.0896, 2.4356, 15.0034)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D6E #646E1D
analogous
#1D3C6E #271D6E #4F1D6E
triadic
#271D6E #6E271D #1D6E27
tetradic
#271D6E #6E1D3C #646E1D #1D6E4F
square
#271D6E #6E1D3C #646E1D #1D6E4F
split-complementary
#271D6E #6E4F1D #3C6E1D
monochromatic
#090618 #16103E #271D6E #382A9E #4C3ACB

Accessibility & contrast

On white

14.12
#271D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271D6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D6E
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D6E#FFFFFF#000000##FFFFFF
##271D6E1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271d6e;
/* rgb */ color: rgb(39, 29, 110);
/* oklch */ color: oklch(30.3% 0.133 280.5);
Tailwind
colors: {
  custom: {
    50: '#6b5a98',
    500: '#271d6e',
    950: '#000000',
  },
}
SCSS
$custom: #271d6e;
$custom-light: #6b5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#271d6e",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 247.407,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30288,
    "c": 0.13291,
    "h": 280.5
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#271D6E
secondary
#97A244
accent
#E146CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #271D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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