#272C81#272C81

#272C81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.141 H 273.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#272C81
RGBrgb(39, 44, 129)
HSLhsl(237, 54%, 33%)
HSVhsv(237, 70%, 51%)
CMYKcmyk(69.8%, 65.9%, 0%, 49.4%)
CIE-LABlab(23.06, 27.34, -48.58)
CIE-LCHlch(23.06, 55.75, 299.37°)
OKLaboklab(34.78% 0.0095 -0.1402)
OKLCHoklch(34.78% 0.141 273.9)
XYZxyz(5.6985, 3.8172, 21.2011)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272C81 #817C27
analogous
#275981 #272C81 #4F2781
triadic
#272C81 #81272C #2C8127
tetradic
#272C81 #812759 #817C27 #27814F
square
#272C81 #812759 #817C27 #27814F
split-complementary
#272C81 #814F27 #598127
monochromatic
#0B0C23 #191C52 #272C81 #353CB0 #565DCC

Accessibility & contrast

On white

11.91
#272C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#272C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272C81
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272C81#FFFFFF#000000##FFFFFF
##272C811.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272c81;
/* rgb */ color: rgb(39, 44, 129);
/* oklch */ color: oklch(34.8% 0.141 273.9);
Tailwind
colors: {
  custom: {
    50: '#6e65a6',
    500: '#272c81',
    950: '#000000',
  },
}
SCSS
$custom: #272c81;
$custom-light: #6e65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#272c81",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 236.667,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34779,
    "c": 0.1405,
    "h": 273.9
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#272C81
secondary
#B1AC53
accent
#D54BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #272C81

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

Preview Lab → · Contrast checker → · Palette generator →

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