#272A76#272A76

#272A76 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.127 H 275.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#272A76
RGBrgb(39, 42, 118)
HSLhsl(238, 50%, 31%)
HSVhsv(238, 67%, 46%)
CMYKcmyk(66.9%, 64.4%, 0%, 53.7%)
CIE-LABlab(21.56, 24.61, -44.05)
CIE-LCHlch(21.56, 50.46, 299.20°)
OKLaboklab(33.38% 0.0119 -0.1269)
OKLCHoklch(33.38% 0.127 275.3)
XYZxyz(4.9336, 3.3949, 17.5313)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A76 #767327
analogous
#275176 #272A76 #4B2776
triadic
#272A76 #76272A #2A7627
tetradic
#272A76 #762751 #767327 #27764B
square
#272A76 #762751 #767327 #27764B
split-complementary
#272A76 #764B27 #517627
monochromatic
#09091A #181A48 #272A76 #363AA4 #5256C6

Accessibility & contrast

On white

12.51
#272A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#272A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A76
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A76#FFFFFF#000000##FFFFFF
##272A761.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #272a76;
/* rgb */ color: rgb(39, 42, 118);
/* oklch */ color: oklch(33.4% 0.127 275.3);
Tailwind
colors: {
  custom: {
    50: '#6b639e',
    500: '#272a76',
    950: '#000000',
  },
}
SCSS
$custom: #272a76;
$custom-light: #6b639e;
$custom-dark: #000000;
JSON
{
  "hex": "#272a76",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 237.722,
    "s": 50.318,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33376,
    "c": 0.12743,
    "h": 275.3
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#272A76
secondary
#A8A551
accent
#D54EDA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #272A76

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

Preview Lab → · Contrast checker → · Palette generator →

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