#272A84#272A84

#272A84 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.147 H 274.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#272A84
RGBrgb(39, 42, 132)
HSLhsl(238, 54%, 34%)
HSVhsv(238, 70%, 52%)
CMYKcmyk(70.5%, 68.2%, 0%, 48.2%)
CIE-LABlab(22.84, 29.77, -50.83)
CIE-LCHlch(22.84, 58.90, 300.36°)
OKLaboklab(34.7% 0.0108 -0.1468)
OKLCHoklch(34.7% 0.147 274.2)
XYZxyz(5.8281, 3.7527, 22.2425)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A84 #848127
analogous
#275884 #272A84 #522784
triadic
#272A84 #84272A #2A8427
tetradic
#272A84 #842758 #848127 #278452
square
#272A84 #842758 #848127 #278452
split-complementary
#272A84 #845227 #588427
monochromatic
#0B0C26 #191B55 #272A84 #3539B3 #585CCE

Accessibility & contrast

On white

12.00
#272A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272A84
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A84#FFFFFF#000000##FFFFFF
##272A841.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272a84;
/* rgb */ color: rgb(39, 42, 132);
/* oklch */ color: oklch(34.7% 0.147 274.2);
Tailwind
colors: {
  custom: {
    50: '#6f64a9',
    500: '#272a84',
    950: '#000000',
  },
}
SCSS
$custom: #272a84;
$custom-light: #6f64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#272a84",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 238.065,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34703,
    "c": 0.14717,
    "h": 274.2
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#272A84
secondary
#B2AF54
accent
#D94ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #272A84

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

Preview Lab → · Contrast checker → · Palette generator →

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