#271972#271972

#271972 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.143 H 280.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#271972
RGBrgb(39, 25, 114)
HSLhsl(249, 64%, 27%)
HSVhsv(249, 78%, 45%)
CMYKcmyk(65.8%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.18, 34.02, -48.64)
CIE-LCHlch(17.18, 59.36, 304.97°)
OKLaboklab(30.1% 0.0264 -0.1404)
OKLCHoklch(30.1% 0.143 280.7)
XYZxyz(4.2206, 2.3412, 16.1458)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271972 #647219
analogous
#193872 #271972 #541972
triadic
#271972 #722719 #197227
tetradic
#271972 #721938 #647219 #197254
square
#271972 #721938 #647219 #197254
split-complementary
#271972 #725419 #387219
monochromatic
#090619 #160E40 #271972 #3824A4 #4C33D2

Accessibility & contrast

On white

14.30
#271972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271972
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271972#FFFFFF#000000##FFFFFF
##2719721.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271972;
/* rgb */ color: rgb(39, 25, 114);
/* oklch */ color: oklch(30.1% 0.143 280.7);
Tailwind
colors: {
  custom: {
    50: '#6c589c',
    500: '#271972',
    950: '#000000',
  },
}
SCSS
$custom: #271972;
$custom-light: #6c589c;
$custom-dark: #000000;
JSON
{
  "hex": "#271972",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 249.438,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30102,
    "c": 0.14282,
    "h": 280.7
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#271972
secondary
#97A740
accent
#E741CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271972

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

Preview Lab → · Contrast checker → · Palette generator →

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