#271C69#271C69

#271C69 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.127 H 281.8°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#271C69
RGBrgb(39, 28, 105)
HSLhsl(249, 58%, 26%)
HSVhsv(249, 73%, 41%)
CMYKcmyk(62.9%, 73.3%, 0%, 58.8%)
CIE-LABlab(16.90, 29.17, -43.25)
CIE-LCHlch(16.90, 52.17, 304.00°)
OKLaboklab(29.62% 0.026 -0.1246)
OKLCHoklch(29.62% 0.127 281.8)
XYZxyz(3.8010, 2.2815, 13.6019)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C69 #5E691C
analogous
#1C3769 #271C69 #4D1C69
triadic
#271C69 #69271C #1C6927
tetradic
#271C69 #691C37 #5E691C #1C694D
square
#271C69 #691C37 #5E691C #1C694D
split-complementary
#271C69 #694D1C #37691C
monochromatic
#090618 #150F39 #271C69 #392999 #4B36C9

Accessibility & contrast

On white

14.42
#271C69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C69
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C69#FFFFFF#000000##FFFFFF
##271C691.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c69;
/* rgb */ color: rgb(39, 28, 105);
/* oklch */ color: oklch(29.6% 0.127 281.8);
Tailwind
colors: {
  custom: {
    50: '#6a5995',
    500: '#271c69',
    950: '#000000',
  },
}
SCSS
$custom: #271c69;
$custom-light: #6a5995;
$custom-dark: #000000;
JSON
{
  "hex": "#271c69",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 105
  },
  "hsl": {
    "h": 248.571,
    "s": 57.895,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29617,
    "c": 0.1273,
    "h": 281.8
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#271C69
secondary
#919E43
accent
#E147CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271C69

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

Preview Lab → · Contrast checker → · Palette generator →

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