#272991#272991

#272991 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.166 H 273.4°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#272991
RGBrgb(39, 41, 145)
HSLhsl(239, 58%, 36%)
HSVhsv(239, 73%, 57%)
CMYKcmyk(73.1%, 71.7%, 0%, 43.1%)
CIE-LABlab(23.87, 35.08, -57.23)
CIE-LCHlch(23.87, 67.13, 301.51°)
OKLaboklab(35.84% 0.0098 -0.1655)
OKLCHoklch(35.84% 0.166 273.4)
XYZxyz(6.7388, 4.0609, 27.2113)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272991 #918F27
analogous
#275E91 #272991 #5A2791
triadic
#272991 #912729 #299127
tetradic
#272991 #91275E #918F27 #27915A
square
#272991 #91275E #918F27 #27915A
split-complementary
#272991 #915A27 #5E9127
monochromatic
#0D0E31 #1A1B61 #272991 #3437C1 #5F61D4

Accessibility & contrast

On white

11.59
#272991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#272991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272991
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272991#FFFFFF#000000##FFFFFF
##2729911.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #272991;
/* rgb */ color: rgb(39, 41, 145);
/* oklch */ color: oklch(35.8% 0.166 273.4);
Tailwind
colors: {
  custom: {
    50: '#7263b2',
    500: '#272991',
    950: '#000000',
  },
}
SCSS
$custom: #272991;
$custom-light: #7263b2;
$custom-dark: #000000;
JSON
{
  "hex": "#272991",
  "rgb": {
    "r": 39,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 238.868,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35838,
    "c": 0.16579,
    "h": 273.4
  },
  "luminance": 0.04062
}

Semantic roles & 50–950 ramp

primary
#272991
secondary
#B9B75B
accent
#DE47E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #272991

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

Preview Lab → · Contrast checker → · Palette generator →

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