#272AA4#272AA4

#272AA4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.189 H 271.9°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#272AA4
RGBrgb(39, 42, 164)
HSLhsl(239, 62%, 40%)
HSVhsv(239, 76%, 64%)
CMYKcmyk(76.2%, 74.4%, 0%, 35.7%)
CIE-LABlab(26.06, 41.10, -65.26)
CIE-LCHlch(26.06, 77.12, 302.20°)
OKLaboklab(37.99% 0.0063 -0.1889)
OKLCHoklch(37.99% 0.189 271.9)
XYZxyz(8.3632, 4.7667, 35.5941)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272AA4 #A4A127
analogous
#2769A4 #272AA4 #6327A4
triadic
#272AA4 #A4272A #2AA427
tetradic
#272AA4 #A42769 #A4A127 #27A463
square
#272AA4 #A42769 #A4A127 #27A463
split-complementary
#272AA4 #A46327 #69A427
monochromatic
#0F1141 #1B1D73 #272AA4 #383CD0 #6A6DDC

Accessibility & contrast

On white

10.75
#272AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#272AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272AA4
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272AA4#FFFFFF#000000##FFFFFF
##272AA41.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0037A2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #272aa4;
/* rgb */ color: rgb(39, 42, 164);
/* oklch */ color: oklch(38.0% 0.189 271.9);
Tailwind
colors: {
  custom: {
    50: '#7765c0',
    500: '#272aa4',
    950: '#000000',
  },
}
SCSS
$custom: #272aa4;
$custom-light: #7765c0;
$custom-dark: #000000;
JSON
{
  "hex": "#272aa4",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 238.56,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37993,
    "c": 0.189,
    "h": 271.9
  },
  "luminance": 0.04768
}

Semantic roles & 50–950 ramp

primary
#272AA4
secondary
#C2C065
accent
#E143E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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