#272C76#272C76

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

Color values

HEX#272C76
RGBrgb(39, 44, 118)
HSLhsl(236, 50%, 31%)
HSVhsv(236, 67%, 46%)
CMYKcmyk(66.9%, 62.7%, 0%, 53.7%)
CIE-LABlab(22.09, 23.25, -43.18)
CIE-LCHlch(22.09, 49.04, 298.30°)
OKLaboklab(33.77% 0.01 -0.1243)
OKLCHoklch(33.77% 0.125 274.6)
XYZxyz(5.0063, 3.5403, 17.5555)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272C76 #767127
analogous
#275376 #272C76 #492776
triadic
#272C76 #76272C #2C7627
tetradic
#272C76 #762753 #767127 #277649
square
#272C76 #762753 #767127 #277649
split-complementary
#272C76 #764927 #537627
monochromatic
#090A1A #181B48 #272C76 #363DA4 #5259C6

Accessibility & contrast

On white

12.29
#272C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#272C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272C76
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272C76#FFFFFF#000000##FFFFFF
##272C761.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #272c76;
/* rgb */ color: rgb(39, 44, 118);
/* oklch */ color: oklch(33.8% 0.125 274.6);
Tailwind
colors: {
  custom: {
    50: '#6b659e',
    500: '#272c76',
    950: '#000000',
  },
}
SCSS
$custom: #272c76;
$custom-light: #6b659e;
$custom-dark: #000000;
JSON
{
  "hex": "#272c76",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 118
  },
  "hsl": {
    "h": 236.203,
    "s": 50.318,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.12474,
    "h": 274.6
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#272C76
secondary
#A8A351
accent
#D14EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #272C76

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

Preview Lab → · Contrast checker → · Palette generator →

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