#272D81#272D81

#272D81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.139 H 273.6°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#272D81
RGBrgb(39, 45, 129)
HSLhsl(236, 54%, 33%)
HSVhsv(236, 70%, 51%)
CMYKcmyk(69.8%, 65.1%, 0%, 49.4%)
CIE-LABlab(23.31, 26.67, -48.16)
CIE-LCHlch(23.31, 55.05, 298.98°)
OKLaboklab(34.97% 0.0087 -0.1389)
OKLCHoklch(34.97% 0.139 273.6)
XYZxyz(5.7362, 3.8926, 21.2137)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272D81 #817B27
analogous
#275A81 #272D81 #4E2781
triadic
#272D81 #81272D #2D8127
tetradic
#272D81 #81275A #817B27 #27814E
square
#272D81 #81275A #817B27 #27814E
split-complementary
#272D81 #814E27 #5A8127
monochromatic
#0B0C23 #191D52 #272D81 #353DB0 #565ECC

Accessibility & contrast

On white

11.81
#272D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#272D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272D81
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272D81#FFFFFF#000000##FFFFFF
##272D811.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272d81;
/* rgb */ color: rgb(39, 45, 129);
/* oklch */ color: oklch(35.0% 0.139 273.6);
Tailwind
colors: {
  custom: {
    50: '#6e66a6',
    500: '#272d81',
    950: '#000000',
  },
}
SCSS
$custom: #272d81;
$custom-light: #6e66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#272d81",
  "rgb": {
    "r": 39,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 236,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34966,
    "c": 0.13922,
    "h": 273.6
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#272D81
secondary
#B1AB53
accent
#D34BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #272D81

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

Preview Lab → · Contrast checker → · Palette generator →

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