#272C78#272C78

#272C78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.128 H 274.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#272C78
RGBrgb(39, 44, 120)
HSLhsl(236, 51%, 31%)
HSVhsv(236, 68%, 47%)
CMYKcmyk(67.5%, 63.3%, 0%, 52.9%)
CIE-LABlab(22.26, 24.00, -44.18)
CIE-LCHlch(22.26, 50.28, 298.51°)
OKLaboklab(33.95% 0.0099 -0.1273)
OKLCHoklch(33.95% 0.128 274.5)
XYZxyz(5.1264, 3.5883, 18.1881)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272C78 #787327
analogous
#275478 #272C78 #4A2778
triadic
#272C78 #78272C #2C7827
tetradic
#272C78 #782754 #787327 #27784A
square
#272C78 #782754 #787327 #27784A
split-complementary
#272C78 #784A27 #547827
monochromatic
#090A1C #181B4A #272C78 #363DA6 #525AC7

Accessibility & contrast

On white

12.22
#272C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#272C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272C78
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272C78#FFFFFF#000000##FFFFFF
##272C781.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #272c78;
/* rgb */ color: rgb(39, 44, 120);
/* oklch */ color: oklch(33.9% 0.128 274.5);
Tailwind
colors: {
  custom: {
    50: '#6c65a0',
    500: '#272c78',
    950: '#000000',
  },
}
SCSS
$custom: #272c78;
$custom-light: #6c65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#272c78",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 236.296,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33946,
    "c": 0.12765,
    "h": 274.5
  },
  "luminance": 0.03589
}

Semantic roles & 50–950 ramp

primary
#272C78
secondary
#AAA551
accent
#D24DDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #272C78

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

Preview Lab → · Contrast checker → · Palette generator →

#272C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva