#272B87#272B87

#272B87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.150 H 273.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#272B87
RGBrgb(39, 43, 135)
HSLhsl(238, 55%, 34%)
HSVhsv(238, 71%, 53%)
CMYKcmyk(71.1%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.36, 30.21, -51.84)
CIE-LCHlch(23.36, 60.00, 300.23°)
OKLaboklab(35.17% 0.0097 -0.1497)
OKLCHoklch(35.17% 0.15 273.7)
XYZxyz(6.0723, 3.9078, 23.3512)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272B87 #878327
analogous
#275B87 #272B87 #532787
triadic
#272B87 #87272B #2B8727
tetradic
#272B87 #87275B #878327 #278753
square
#272B87 #87275B #878327 #278753
split-complementary
#272B87 #875327 #5B8727
monochromatic
#0C0D28 #191C58 #272B87 #353AB6 #595ECF

Accessibility & contrast

On white

11.79
#272B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272B87
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272B87#FFFFFF#000000##FFFFFF
##272B871.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272b87;
/* rgb */ color: rgb(39, 43, 135);
/* oklch */ color: oklch(35.2% 0.150 273.7);
Tailwind
colors: {
  custom: {
    50: '#6f64ab',
    500: '#272b87',
    950: '#000000',
  },
}
SCSS
$custom: #272b87;
$custom-light: #6f64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#272b87",
  "rgb": {
    "r": 39,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 237.5,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35174,
    "c": 0.15007,
    "h": 273.7
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#272B87
secondary
#B4B056
accent
#D849DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #272B87

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

Preview Lab → · Contrast checker → · Palette generator →

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