#271C6A#271C6A

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

Color values

HEX#271C6A
RGBrgb(39, 28, 106)
HSLhsl(248, 58%, 26%)
HSVhsv(248, 74%, 42%)
CMYKcmyk(63.2%, 73.6%, 0%, 58.4%)
CIE-LABlab(17.00, 29.52, -43.75)
CIE-LCHlch(17.00, 52.77, 304.01°)
OKLaboklab(29.72% 0.0259 -0.126)
OKLCHoklch(29.72% 0.129 281.6)
XYZxyz(3.8527, 2.3022, 13.8742)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C6A #5F6A1C
analogous
#1C386A #271C6A #4E1C6A
triadic
#271C6A #6A271C #1C6A27
tetradic
#271C6A #6A1C38 #5F6A1C #1C6A4E
square
#271C6A #6A1C38 #5F6A1C #1C6A4E
split-complementary
#271C6A #6A4E1C #386A1C
monochromatic
#090618 #150F3A #271C6A #39299A #4B36CA

Accessibility & contrast

On white

14.38
#271C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C6A
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C6A#FFFFFF#000000##FFFFFF
##271C6A1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c6a;
/* rgb */ color: rgb(39, 28, 106);
/* oklch */ color: oklch(29.7% 0.129 281.6);
Tailwind
colors: {
  custom: {
    50: '#6a5995',
    500: '#271c6a',
    950: '#000000',
  },
}
SCSS
$custom: #271c6a;
$custom-light: #6a5995;
$custom-dark: #000000;
JSON
{
  "hex": "#271c6a",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 106
  },
  "hsl": {
    "h": 248.462,
    "s": 58.209,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29719,
    "c": 0.12867,
    "h": 281.6
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#271C6A
secondary
#929F43
accent
#E146CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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