#272891#272891

#272891 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.167 H 273.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#272891
RGBrgb(39, 40, 145)
HSLhsl(239, 58%, 36%)
HSVhsv(239, 73%, 57%)
CMYKcmyk(73.1%, 72.4%, 0%, 43.1%)
CIE-LABlab(23.65, 35.70, -57.60)
CIE-LCHlch(23.65, 67.77, 301.79°)
OKLaboklab(35.68% 0.0104 -0.1666)
OKLCHoklch(35.68% 0.167 273.6)
XYZxyz(6.7046, 3.9926, 27.1999)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272891 #919027
analogous
#275D91 #272891 #5B2791
triadic
#272891 #912728 #289127
tetradic
#272891 #91275D #919027 #27915B
square
#272891 #91275D #919027 #27915B
split-complementary
#272891 #915B27 #5D9127
monochromatic
#0D0D31 #1A1B61 #272891 #3435C1 #5F60D4

Accessibility & contrast

On white

11.68
#272891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#272891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272891
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272891#FFFFFF#000000##FFFFFF
##2728911.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272891;
/* rgb */ color: rgb(39, 40, 145);
/* oklch */ color: oklch(35.7% 0.167 273.6);
Tailwind
colors: {
  custom: {
    50: '#7263b2',
    500: '#272891',
    950: '#000000',
  },
}
SCSS
$custom: #272891;
$custom-light: #7263b2;
$custom-dark: #000000;
JSON
{
  "hex": "#272891",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 239.434,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35677,
    "c": 0.1669,
    "h": 273.6
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#272891
secondary
#B9B85B
accent
#DF47E1
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #272891

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

Preview Lab → · Contrast checker → · Palette generator →

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