#272F87#272F87

#272F87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.145 H 272.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#272F87
RGBrgb(39, 47, 135)
HSLhsl(235, 55%, 34%)
HSVhsv(235, 71%, 53%)
CMYKcmyk(71.1%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.36, 27.56, -50.21)
CIE-LCHlch(24.36, 57.28, 298.76°)
OKLaboklab(35.9% 0.0067 -0.1449)
OKLCHoklch(35.9% 0.145 272.6)
XYZxyz(6.2249, 4.2130, 23.4021)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F87 #877F27
analogous
#275F87 #272F87 #4F2787
triadic
#272F87 #87272F #2F8727
tetradic
#272F87 #87275F #877F27 #27874F
square
#272F87 #87275F #877F27 #27874F
split-complementary
#272F87 #874F27 #5F8727
monochromatic
#0C0E28 #191E58 #272F87 #3540B6 #5963CF

Accessibility & contrast

On white

11.40
#272F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#272F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F87
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F87#FFFFFF#000000##FFFFFF
##272F871.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #272f87;
/* rgb */ color: rgb(39, 47, 135);
/* oklch */ color: oklch(35.9% 0.145 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f67ab',
    500: '#272f87',
    950: '#000000',
  },
}
SCSS
$custom: #272f87;
$custom-light: #6f67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#272f87",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 235,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35904,
    "c": 0.14508,
    "h": 272.6
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#272F87
secondary
#B4AC56
accent
#D249DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #272F87

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

Preview Lab → · Contrast checker → · Palette generator →

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