#272AA1#272AA1

#272AA1 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.185 H 272.1°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#272AA1
RGBrgb(39, 42, 161)
HSLhsl(239, 61%, 39%)
HSVhsv(239, 76%, 63%)
CMYKcmyk(75.8%, 73.9%, 0%, 36.9%)
CIE-LABlab(25.74, 40.07, -63.96)
CIE-LCHlch(25.74, 75.48, 302.06°)
OKLaboklab(37.67% 0.0068 -0.1851)
OKLCHoklch(37.67% 0.185 272.1)
XYZxyz(8.0955, 4.6596, 34.1840)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272AA1 #A19E27
analogous
#2767A1 #272AA1 #6127A1
triadic
#272AA1 #A1272A #2AA127
tetradic
#272AA1 #A12767 #A19E27 #27A161
square
#272AA1 #A12767 #A19E27 #27A161
split-complementary
#272AA1 #A16127 #67A127
monochromatic
#0F103E #1B1D70 #272AA1 #373ACE #686BDA

Accessibility & contrast

On white

10.87
#272AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#272AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272AA1
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272AA1#FFFFFF#000000##FFFFFF
##272AA11.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #272aa1;
/* rgb */ color: rgb(39, 42, 161);
/* oklch */ color: oklch(37.7% 0.185 272.1);
Tailwind
colors: {
  custom: {
    50: '#7665be',
    500: '#272aa1',
    950: '#000000',
  },
}
SCSS
$custom: #272aa1;
$custom-light: #7665be;
$custom-dark: #000000;
JSON
{
  "hex": "#272aa1",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 238.525,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37673,
    "c": 0.18524,
    "h": 272.1
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#272AA1
secondary
#C0BE63
accent
#E044E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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