#272D76#272D76

#272D76 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.123 H 274.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#272D76
RGBrgb(39, 45, 118)
HSLhsl(235, 50%, 31%)
HSVhsv(235, 67%, 46%)
CMYKcmyk(66.9%, 61.9%, 0%, 53.7%)
CIE-LABlab(22.36, 22.56, -42.75)
CIE-LCHlch(22.36, 48.33, 297.82°)
OKLaboklab(33.96% 0.0091 -0.123)
OKLCHoklch(33.96% 0.123 274.2)
XYZxyz(5.0440, 3.6157, 17.5681)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272D76 #767027
analogous
#275476 #272D76 #482776
triadic
#272D76 #76272D #2D7627
tetradic
#272D76 #762754 #767027 #277648
square
#272D76 #762754 #767027 #277648
split-complementary
#272D76 #764827 #547627
monochromatic
#090A1A #181B48 #272D76 #363FA4 #525AC6

Accessibility & contrast

On white

12.19
#272D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272D76
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272D76#FFFFFF#000000##FFFFFF
##272D761.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #272d76;
/* rgb */ color: rgb(39, 45, 118);
/* oklch */ color: oklch(34.0% 0.123 274.2);
Tailwind
colors: {
  custom: {
    50: '#6b659e',
    500: '#272d76',
    950: '#000000',
  },
}
SCSS
$custom: #272d76;
$custom-light: #6b659e;
$custom-dark: #000000;
JSON
{
  "hex": "#272d76",
  "rgb": {
    "r": 39,
    "g": 45,
    "b": 118
  },
  "hsl": {
    "h": 235.443,
    "s": 50.318,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33964,
    "c": 0.12337,
    "h": 274.2
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#272D76
secondary
#A8A251
accent
#CF4EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #272D76

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

Preview Lab → · Contrast checker → · Palette generator →

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