#271879#271879

#271879 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.153 H 279.5°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#271879
RGBrgb(39, 24, 121)
HSLhsl(249, 67%, 28%)
HSVhsv(249, 80%, 47%)
CMYKcmyk(67.8%, 80.2%, 0%, 52.5%)
CIE-LABlab(17.76, 36.88, -52.20)
CIE-LCHlch(17.76, 63.92, 305.24°)
OKLaboklab(30.73% 0.0252 -0.1507)
OKLCHoklch(30.73% 0.153 279.5)
XYZxyz(4.6134, 2.4647, 18.3181)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271879 #6A7918
analogous
#183979 #271879 #571879
triadic
#271879 #792718 #187927
tetradic
#271879 #791839 #6A7918 #187957
square
#271879 #791839 #6A7918 #187957
split-complementary
#271879 #795718 #397918
monochromatic
#08051A #170E46 #271879 #3722AC #4E35D7

Accessibility & contrast

On white

14.07
#271879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271879
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271879#FFFFFF#000000##FFFFFF
##2718791.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271879;
/* rgb */ color: rgb(39, 24, 121);
/* oklch */ color: oklch(30.7% 0.153 279.5);
Tailwind
colors: {
  custom: {
    50: '#6e58a1',
    500: '#271879',
    950: '#000000',
  },
}
SCSS
$custom: #271879;
$custom-light: #6e58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271879",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 249.278,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30734,
    "c": 0.15282,
    "h": 279.5
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#271879
secondary
#9DAE3F
accent
#EA3ECF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271879

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

Preview Lab → · Contrast checker → · Palette generator →

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