#271F73#271F73

#271F73 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.137 H 279.1°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#271F73
RGBrgb(39, 31, 115)
HSLhsl(246, 58%, 29%)
HSVhsv(246, 73%, 45%)
CMYKcmyk(66.1%, 73%, 0%, 54.9%)
CIE-LABlab(18.58, 30.76, -47.00)
CIE-LCHlch(18.58, 56.17, 303.20°)
OKLaboklab(31.12% 0.0217 -0.1356)
OKLCHoklch(31.12% 0.137 279.1)
XYZxyz(4.4202, 2.6488, 16.4947)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F73 #6B731F
analogous
#1F4173 #271F73 #511F73
triadic
#271F73 #73271F #1F7327
tetradic
#271F73 #731F41 #6B731F #1F7351
square
#271F73 #731F41 #6B731F #1F7351
split-complementary
#271F73 #73511F #41731F
monochromatic
#080618 #171243 #271F73 #372CA3 #4E41CC

Accessibility & contrast

On white

13.73
#271F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F73
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F73#FFFFFF#000000##FFFFFF
##271F731.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271f73;
/* rgb */ color: rgb(39, 31, 115);
/* oklch */ color: oklch(31.1% 0.137 279.1);
Tailwind
colors: {
  custom: {
    50: '#6c5c9c',
    500: '#271f73',
    950: '#000000',
  },
}
SCSS
$custom: #271f73;
$custom-light: #6c5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#271f73",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 245.714,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31124,
    "c": 0.1373,
    "h": 279.1
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#271F73
secondary
#9EA747
accent
#E147D2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #271F73

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

Preview Lab → · Contrast checker → · Palette generator →

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