#272A89#272A89

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

Color values

HEX#272A89
RGBrgb(39, 42, 137)
HSLhsl(238, 56%, 35%)
HSVhsv(238, 72%, 54%)
CMYKcmyk(71.5%, 69.3%, 0%, 46.3%)
CIE-LABlab(23.31, 31.59, -53.18)
CIE-LCHlch(23.31, 61.85, 300.71°)
OKLaboklab(35.2% 0.0102 -0.1536)
OKLCHoklch(35.2% 0.154 273.8)
XYZxyz(6.1785, 3.8928, 24.0878)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A89 #898627
analogous
#275B89 #272A89 #552789
triadic
#272A89 #89272A #2A8927
tetradic
#272A89 #89275B #898627 #278955
square
#272A89 #89275B #898627 #278955
split-complementary
#272A89 #895527 #5B8927
monochromatic
#0C0D2A #191B59 #272A89 #3539B9 #5A5ED0

Accessibility & contrast

On white

11.81
#272A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272A89
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A89#FFFFFF#000000##FFFFFF
##272A891.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272a89;
/* rgb */ color: rgb(39, 42, 137);
/* oklch */ color: oklch(35.2% 0.154 273.8);
Tailwind
colors: {
  custom: {
    50: '#7064ac',
    500: '#272a89',
    950: '#000000',
  },
}
SCSS
$custom: #272a89;
$custom-light: #7064ac;
$custom-dark: #000000;
JSON
{
  "hex": "#272a89",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 238.163,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35196,
    "c": 0.15399,
    "h": 273.8
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#272A89
secondary
#B5B257
accent
#DA49DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #272A89

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

Preview Lab → · Contrast checker → · Palette generator →

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