#272796#272796

#272796 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.174 H 273.3°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#272796
RGBrgb(39, 39, 150)
HSLhsl(240, 59%, 37%)
HSVhsv(240, 74%, 59%)
CMYKcmyk(74%, 74%, 0%, 41.2%)
CIE-LABlab(23.95, 38.05, -60.20)
CIE-LCHlch(23.95, 71.21, 302.30°)
OKLaboklab(36.05% 0.0101 -0.1741)
OKLCHoklch(36.05% 0.174 273.3)
XYZxyz(7.0654, 4.0837, 29.2641)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272796 #969627
analogous
#275F96 #272796 #5F2796
triadic
#272796 #962727 #279627
tetradic
#272796 #96275F #969627 #27965F
square
#272796 #96275F #969627 #27965F
split-complementary
#272796 #965F27 #5F9627
monochromatic
#0E0E35 #1A1A65 #272796 #3434C7 #6161D6

Accessibility & contrast

On white

11.56
#272796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#272796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272796
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272796#FFFFFF#000000##FFFFFF
##2727961.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #272796;
/* rgb */ color: rgb(39, 39, 150);
/* oklch */ color: oklch(36.0% 0.174 273.3);
Tailwind
colors: {
  custom: {
    50: '#7362b6',
    500: '#272796',
    950: '#000000',
  },
}
SCSS
$custom: #272796;
$custom-light: #7362b6;
$custom-dark: #000000;
JSON
{
  "hex": "#272796",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.17443,
    "h": 273.3
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#272796
secondary
#BCBC5D
accent
#E246E2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #272796

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

Preview Lab → · Contrast checker → · Palette generator →

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