#272A79#272A79

#272A79 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.132 H 275.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#272A79
RGBrgb(39, 42, 121)
HSLhsl(238, 51%, 31%)
HSVhsv(238, 68%, 47%)
CMYKcmyk(67.8%, 65.3%, 0%, 52.5%)
CIE-LABlab(21.83, 25.73, -45.53)
CIE-LCHlch(21.83, 52.29, 299.47°)
OKLaboklab(33.65% 0.0117 -0.1312)
OKLCHoklch(33.65% 0.132 275.1)
XYZxyz(5.1147, 3.4673, 18.4852)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A79 #797627
analogous
#275379 #272A79 #4D2779
triadic
#272A79 #79272A #2A7927
tetradic
#272A79 #792753 #797627 #27794D
square
#272A79 #792753 #797627 #27794D
split-complementary
#272A79 #794D27 #537927
monochromatic
#090A1C #181A4B #272A79 #363AA7 #5357C8

Accessibility & contrast

On white

12.40
#272A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#272A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A79
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A79#FFFFFF#000000##FFFFFF
##272A791.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #272a79;
/* rgb */ color: rgb(39, 42, 121);
/* oklch */ color: oklch(33.7% 0.132 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c63a0',
    500: '#272a79',
    950: '#000000',
  },
}
SCSS
$custom: #272a79;
$custom-light: #6c63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#272a79",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 237.805,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33653,
    "c": 0.13175,
    "h": 275.1
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#272A79
secondary
#ABA851
accent
#D64DDB
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#08050F
muted
#7A797F

Preview Lab

Preview with #272A79

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

Preview Lab → · Contrast checker → · Palette generator →

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