#272C87#272C87

#272C87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.149 H 273.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#272C87
RGBrgb(39, 44, 135)
HSLhsl(237, 55%, 34%)
HSVhsv(237, 71%, 53%)
CMYKcmyk(71.1%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.61, 29.55, -51.44)
CIE-LCHlch(23.61, 59.33, 299.88°)
OKLaboklab(35.35% 0.009 -0.1486)
OKLCHoklch(35.35% 0.149 273.5)
XYZxyz(6.1091, 3.9814, 23.3635)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272C87 #878227
analogous
#275C87 #272C87 #522787
triadic
#272C87 #87272C #2C8727
tetradic
#272C87 #87275C #878227 #278752
square
#272C87 #87275C #878227 #278752
split-complementary
#272C87 #875227 #5C8727
monochromatic
#0C0D28 #191D58 #272C87 #353BB6 #595FCF

Accessibility & contrast

On white

11.69
#272C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#272C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272C87
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272C87#FFFFFF#000000##FFFFFF
##272C871.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272c87;
/* rgb */ color: rgb(39, 44, 135);
/* oklch */ color: oklch(35.4% 0.149 273.5);
Tailwind
colors: {
  custom: {
    50: '#6f65ab',
    500: '#272c87',
    950: '#000000',
  },
}
SCSS
$custom: #272c87;
$custom-light: #6f65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#272c87",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 236.875,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35353,
    "c": 0.14884,
    "h": 273.5
  },
  "luminance": 0.03982
}

Semantic roles & 50–950 ramp

primary
#272C87
secondary
#B4AF56
accent
#D749DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #272C87

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

Preview Lab → · Contrast checker → · Palette generator →

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