#272873#272873

#272873 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.126 H 276.3°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#272873
RGBrgb(39, 40, 115)
HSLhsl(239, 49%, 30%)
HSVhsv(239, 66%, 45%)
CMYKcmyk(66.1%, 65.2%, 0%, 54.9%)
CIE-LABlab(20.78, 24.87, -43.40)
CIE-LCHlch(20.78, 50.02, 299.81°)
OKLaboklab(32.72% 0.0139 -0.125)
OKLCHoklch(32.72% 0.126 276.3)
XYZxyz(4.6890, 3.1863, 16.5843)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272873 #737227
analogous
#274E73 #272873 #4C2773
triadic
#272873 #732728 #287327
tetradic
#272873 #73274E #737227 #27734C
square
#272873 #73274E #737227 #27734C
split-complementary
#272873 #734C27 #4E7327
monochromatic
#080818 #181845 #272873 #3638A1 #5152C4

Accessibility & contrast

On white

12.83
#272873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#272873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272873
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272873#FFFFFF#000000##FFFFFF
##2728731.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #272873;
/* rgb */ color: rgb(39, 40, 115);
/* oklch */ color: oklch(32.7% 0.126 276.3);
Tailwind
colors: {
  custom: {
    50: '#6b629c',
    500: '#272873',
    950: '#000000',
  },
}
SCSS
$custom: #272873;
$custom-light: #6b629c;
$custom-dark: #000000;
JSON
{
  "hex": "#272873",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 239.211,
    "s": 49.351,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32717,
    "c": 0.12578,
    "h": 276.3
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#272873
secondary
#A5A450
accent
#D74FD9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #272873

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

Preview Lab → · Contrast checker → · Palette generator →

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