#271999#271999

#271999 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.6% C 0.191 H 274.7°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#271999
RGBrgb(39, 25, 153)
HSLhsl(247, 72%, 35%)
HSVhsv(247, 84%, 60%)
CMYKcmyk(74.5%, 83.7%, 0%, 40%)
CIE-LABlab(21.67, 46.52, -65.80)
CIE-LCHlch(21.67, 80.58, 305.26°)
OKLaboklab(34.55% 0.0155 -0.1902)
OKLCHoklch(34.55% 0.191 274.7)
XYZxyz(6.9322, 3.4258, 30.4267)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271999 #8B9919
analogous
#194B99 #271999 #671999
triadic
#271999 #992719 #199927
tetradic
#271999 #99194B #8B9919 #199967
square
#271999 #99194B #8B9919 #199967
split-complementary
#271999 #996719 #4B9919
monochromatic
#0C0830 #1A1064 #271999 #3422CE #5B4BE2

Accessibility & contrast

On white

12.46
#271999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#271999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271999
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271999#FFFFFF#000000##FFFFFF
##2719991.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399C
Deuteranopia (green-blind)
#002E97
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271999;
/* rgb */ color: rgb(39, 25, 153);
/* oklch */ color: oklch(34.6% 0.191 274.7);
Tailwind
colors: {
  custom: {
    50: '#755ab8',
    500: '#271999',
    950: '#000000',
  },
}
SCSS
$custom: #271999;
$custom-light: #755ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#271999",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 153
  },
  "hsl": {
    "h": 246.563,
    "s": 71.91,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34551,
    "c": 0.19088,
    "h": 274.7
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#271999
secondary
#B6C34A
accent
#EF39DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271999

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

Preview Lab → · Contrast checker → · Palette generator →

#271999 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva