#272291#272291

#272291 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.173 H 274.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#272291
RGBrgb(39, 34, 145)
HSLhsl(243, 62%, 35%)
HSVhsv(243, 77%, 57%)
CMYKcmyk(73.1%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.37, 39.27, -59.71)
CIE-LCHlch(22.37, 71.46, 303.33°)
OKLaboklab(34.77% 0.0137 -0.1727)
OKLCHoklch(34.77% 0.173 274.5)
XYZxyz(6.5179, 3.6191, 27.1376)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272291 #8C9122
analogous
#225491 #272291 #5F2291
triadic
#272291 #912722 #229127
tetradic
#272291 #912254 #8C9122 #22915F
square
#272291 #912254 #8C9122 #22915F
split-complementary
#272291 #915F22 #549122
monochromatic
#0C0B2E #1A165F #272291 #342EC3 #5C56D7

Accessibility & contrast

On white

12.18
#272291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#272291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272291
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272291#FFFFFF#000000##FFFFFF
##2722911.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #272291;
/* rgb */ color: rgb(39, 34, 145);
/* oklch */ color: oklch(34.8% 0.173 274.5);
Tailwind
colors: {
  custom: {
    50: '#735fb2',
    500: '#272291',
    950: '#000000',
  },
}
SCSS
$custom: #272291;
$custom-light: #735fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#272291",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 242.703,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34768,
    "c": 0.17322,
    "h": 274.5
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#272291
secondary
#B7BB53
accent
#E543DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #272291

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

Preview Lab → · Contrast checker → · Palette generator →

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