#272A97#272A97

#272A97 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.172 H 272.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#272A97
RGBrgb(39, 42, 151)
HSLhsl(238, 59%, 37%)
HSVhsv(238, 74%, 59%)
CMYKcmyk(74.2%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.71, 36.58, -59.56)
CIE-LCHlch(24.71, 69.90, 301.56°)
OKLaboklab(36.62% 0.0083 -0.1723)
OKLCHoklch(36.62% 0.173 272.8)
XYZxyz(7.2487, 4.3209, 29.7242)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A97 #979427
analogous
#276297 #272A97 #5C2797
triadic
#272A97 #97272A #2A9727
tetradic
#272A97 #972762 #979427 #27975C
square
#272A97 #972762 #979427 #27975C
split-complementary
#272A97 #975C27 #629727
monochromatic
#0E0F36 #1A1C66 #272A97 #3438C8 #6265D6

Accessibility & contrast

On white

11.26
#272A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#272A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A97
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A97#FFFFFF#000000##FFFFFF
##272A971.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #272a97;
/* rgb */ color: rgb(39, 42, 151);
/* oklch */ color: oklch(36.6% 0.172 272.8);
Tailwind
colors: {
  custom: {
    50: '#7364b7',
    500: '#272a97',
    950: '#000000',
  },
}
SCSS
$custom: #272a97;
$custom-light: #7364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272a97",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 238.393,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3662,
    "c": 0.1725,
    "h": 272.8
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#272A97
secondary
#BCB95E
accent
#DE46E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #272A97

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

Preview Lab → · Contrast checker → · Palette generator →

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