#272386#272386

#272386 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.158 H 275.6°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#272386
RGBrgb(39, 35, 134)
HSLhsl(242, 59%, 33%)
HSVhsv(242, 74%, 53%)
CMYKcmyk(70.9%, 73.9%, 0%, 47.5%)
CIE-LABlab(21.41, 34.91, -54.43)
CIE-LCHlch(21.41, 64.66, 302.68°)
OKLaboklab(33.74% 0.0153 -0.1573)
OKLCHoklch(33.74% 0.158 275.6)
XYZxyz(5.7394, 3.3541, 22.8946)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272386 #828623
analogous
#235086 #272386 #582386
triadic
#272386 #862723 #238627
tetradic
#272386 #862350 #828623 #238658
square
#272386 #862350 #828623 #238658
split-complementary
#272386 #865823 #508623
monochromatic
#0B0A25 #191655 #272386 #3530B7 #5752D2

Accessibility & contrast

On white

12.57
#272386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#272386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272386
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272386#FFFFFF#000000##FFFFFF
##2723861.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #272386;
/* rgb */ color: rgb(39, 35, 134);
/* oklch */ color: oklch(33.7% 0.158 275.6);
Tailwind
colors: {
  custom: {
    50: '#705faa',
    500: '#272386',
    950: '#000000',
  },
}
SCSS
$custom: #272386;
$custom-light: #705faa;
$custom-dark: #000000;
JSON
{
  "hex": "#272386",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 242.424,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33735,
    "c": 0.15805,
    "h": 275.6
  },
  "luminance": 0.03355
}

Semantic roles & 50–950 ramp

primary
#272386
secondary
#B1B54F
accent
#E246DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #272386

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

Preview Lab → · Contrast checker → · Palette generator →

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