#272B78#272B78

#272B78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.129 H 274.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#272B78
RGBrgb(39, 43, 120)
HSLhsl(237, 51%, 31%)
HSVhsv(237, 68%, 47%)
CMYKcmyk(67.5%, 64.2%, 0%, 52.9%)
CIE-LABlab(22.00, 24.68, -44.61)
CIE-LCHlch(22.00, 50.98, 298.95°)
OKLaboklab(33.75% 0.0108 -0.1285)
OKLCHoklch(33.75% 0.129 274.8)
XYZxyz(5.0896, 3.5147, 18.1759)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272B78 #787427
analogous
#275378 #272B78 #4B2778
triadic
#272B78 #78272B #2B7827
tetradic
#272B78 #782753 #787427 #27784B
square
#272B78 #782753 #787427 #27784B
split-complementary
#272B78 #784B27 #537827
monochromatic
#090A1C #181A4A #272B78 #363CA6 #5258C7

Accessibility & contrast

On white

12.33
#272B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#272B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272B78
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272B78#FFFFFF#000000##FFFFFF
##272B781.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #272b78;
/* rgb */ color: rgb(39, 43, 120);
/* oklch */ color: oklch(33.8% 0.129 274.8);
Tailwind
colors: {
  custom: {
    50: '#6c64a0',
    500: '#272b78',
    950: '#000000',
  },
}
SCSS
$custom: #272b78;
$custom-light: #6c64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#272b78",
  "rgb": {
    "r": 39,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 237.037,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33752,
    "c": 0.12899,
    "h": 274.8
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#272B78
secondary
#AAA651
accent
#D34DDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #272B78

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

Preview Lab → · Contrast checker → · Palette generator →

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