#272F76#272F76

#272F76 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.121 H 273.4°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#272F76
RGBrgb(39, 47, 118)
HSLhsl(234, 50%, 31%)
HSVhsv(234, 67%, 46%)
CMYKcmyk(66.9%, 60.2%, 0%, 53.7%)
CIE-LABlab(22.90, 21.18, -41.86)
CIE-LCHlch(22.90, 46.91, 296.83°)
OKLaboklab(34.37% 0.0071 -0.1204)
OKLCHoklch(34.37% 0.121 273.4)
XYZxyz(5.1221, 3.7719, 17.5942)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F76 #766E27
analogous
#275676 #272F76 #462776
triadic
#272F76 #76272F #2F7627
tetradic
#272F76 #762756 #766E27 #277646
square
#272F76 #762756 #766E27 #277646
split-complementary
#272F76 #764627 #567627
monochromatic
#090A1A #181D48 #272F76 #3641A4 #525DC6

Accessibility & contrast

On white

11.97
#272F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#272F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F76
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F76#FFFFFF#000000##FFFFFF
##272F761.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272f76;
/* rgb */ color: rgb(39, 47, 118);
/* oklch */ color: oklch(34.4% 0.121 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b679e',
    500: '#272f76',
    950: '#000000',
  },
}
SCSS
$custom: #272f76;
$custom-light: #6b679e;
$custom-dark: #000000;
JSON
{
  "hex": "#272f76",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 233.924,
    "s": 50.318,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34369,
    "c": 0.12063,
    "h": 273.4
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#272F76
secondary
#A89F51
accent
#CC4EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #272F76

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

Preview Lab → · Contrast checker → · Palette generator →

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