#271970#271970

#271970 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.140 H 281.1°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#271970
RGBrgb(39, 25, 112)
HSLhsl(250, 64%, 27%)
HSVhsv(250, 78%, 44%)
CMYKcmyk(65.2%, 77.7%, 0%, 56.1%)
CIE-LABlab(16.97, 33.36, -47.70)
CIE-LCHlch(16.97, 58.21, 304.96°)
OKLaboklab(29.89% 0.0269 -0.1376)
OKLCHoklch(29.89% 0.14 281.1)
XYZxyz(4.1080, 2.2961, 15.5528)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271970 #627019
analogous
#193770 #271970 #531970
triadic
#271970 #702719 #197027
tetradic
#271970 #701937 #627019 #197053
square
#271970 #701937 #627019 #197053
split-complementary
#271970 #705319 #377019
monochromatic
#090619 #160E3E #271970 #3824A2 #4C32D1

Accessibility & contrast

On white

14.39
#271970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271970
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271970#FFFFFF#000000##FFFFFF
##2719701.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271970;
/* rgb */ color: rgb(39, 25, 112);
/* oklch */ color: oklch(29.9% 0.140 281.1);
Tailwind
colors: {
  custom: {
    50: '#6c589a',
    500: '#271970',
    950: '#000000',
  },
}
SCSS
$custom: #271970;
$custom-light: #6c589a;
$custom-dark: #000000;
JSON
{
  "hex": "#271970",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 249.655,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29886,
    "c": 0.14021,
    "h": 281.1
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

primary
#271970
secondary
#95A540
accent
#E741CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271970

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

Preview Lab → · Contrast checker → · Palette generator →

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