#272387#272387

#272387 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.159 H 275.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#272387
RGBrgb(39, 35, 135)
HSLhsl(242, 59%, 33%)
HSVhsv(242, 74%, 53%)
CMYKcmyk(71.1%, 74.1%, 0%, 47.1%)
CIE-LABlab(21.51, 35.26, -54.89)
CIE-LCHlch(21.51, 65.24, 302.72°)
OKLaboklab(33.84% 0.0151 -0.1586)
OKLCHoklch(33.84% 0.159 275.5)
XYZxyz(5.8095, 3.3821, 23.2636)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272387 #838723
analogous
#235187 #272387 #592387
triadic
#272387 #872723 #238727
tetradic
#272387 #872351 #838723 #238759
square
#272387 #872351 #838723 #238759
split-complementary
#272387 #875923 #518723
monochromatic
#0B0A26 #191656 #272387 #3530B8 #5752D2

Accessibility & contrast

On white

12.53
#272387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#272387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272387
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272387#FFFFFF#000000##FFFFFF
##2723871.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #272387;
/* rgb */ color: rgb(39, 35, 135);
/* oklch */ color: oklch(33.8% 0.159 275.5);
Tailwind
colors: {
  custom: {
    50: '#705fab',
    500: '#272387',
    950: '#000000',
  },
}
SCSS
$custom: #272387;
$custom-light: #705fab;
$custom-dark: #000000;
JSON
{
  "hex": "#272387",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 242.4,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33841,
    "c": 0.15936,
    "h": 275.5
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#272387
secondary
#B2B650
accent
#E246DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #272387

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

Preview Lab → · Contrast checker → · Palette generator →

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