#271C73#271C73

#271C73 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.141 H 279.8°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#271C73
RGBrgb(39, 28, 115)
HSLhsl(248, 61%, 28%)
HSVhsv(248, 76%, 45%)
CMYKcmyk(66.1%, 75.7%, 0%, 54.9%)
CIE-LABlab(17.92, 32.60, -48.09)
CIE-LCHlch(17.92, 58.10, 304.13°)
OKLaboklab(30.65% 0.024 -0.1388)
OKLCHoklch(30.65% 0.141 279.8)
XYZxyz(4.3455, 2.4993, 16.4698)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C73 #68731C
analogous
#1C3C73 #271C73 #521C73
triadic
#271C73 #73271C #1C7327
tetradic
#271C73 #731C3C #68731C #1C7352
square
#271C73 #731C3C #68731C #1C7352
split-complementary
#271C73 #73521C #3C731C
monochromatic
#080619 #161042 #271C73 #3828A4 #4D3ACF

Accessibility & contrast

On white

14.00
#271C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C73
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C73#FFFFFF#000000##FFFFFF
##271C731.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271c73;
/* rgb */ color: rgb(39, 28, 115);
/* oklch */ color: oklch(30.7% 0.141 279.8);
Tailwind
colors: {
  custom: {
    50: '#6c5a9c',
    500: '#271c73',
    950: '#000000',
  },
}
SCSS
$custom: #271c73;
$custom-light: #6c5a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#271c73",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 115
  },
  "hsl": {
    "h": 247.586,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30651,
    "c": 0.14081,
    "h": 279.8
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

primary
#271C73
secondary
#9BA743
accent
#E444D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271C73

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

Preview Lab → · Contrast checker → · Palette generator →

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