#271489#271489

#271489 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.176 H 277.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#271489
RGBrgb(39, 20, 137)
HSLhsl(250, 75%, 31%)
HSVhsv(250, 85%, 54%)
CMYKcmyk(71.5%, 85.4%, 0%, 46.3%)
CIE-LABlab(18.96, 43.88, -60.36)
CIE-LCHlch(18.96, 74.63, 306.02°)
OKLaboklab(32.12% 0.0222 -0.1744)
OKLCHoklch(32.12% 0.176 277.3)
XYZxyz(5.6007, 2.7373, 23.8952)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271489 #768914
analogous
#143B89 #271489 #611489
triadic
#271489 #892714 #148927
tetradic
#271489 #89143B #768914 #148961
square
#271489 #89143B #768914 #148961
split-complementary
#271489 #896114 #3B8914
monochromatic
#09041E #180C54 #271489 #361CBE #5236E2

Accessibility & contrast

On white

13.57
#271489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271489
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271489#FFFFFF#000000##FFFFFF
##2714891.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271489;
/* rgb */ color: rgb(39, 20, 137);
/* oklch */ color: oklch(32.1% 0.176 277.3);
Tailwind
colors: {
  custom: {
    50: '#7257ad',
    500: '#271489',
    950: '#000000',
  },
}
SCSS
$custom: #271489;
$custom-light: #7257ad;
$custom-dark: #000000;
JSON
{
  "hex": "#271489",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 249.744,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32118,
    "c": 0.1758,
    "h": 277.3
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#271489
secondary
#A8BD3C
accent
#F137D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271489

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

Preview Lab → · Contrast checker → · Palette generator →

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