#272AA7#272AA7

#272AA7 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.193 H 271.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#272AA7
RGBrgb(39, 42, 167)
HSLhsl(239, 62%, 40%)
HSVhsv(239, 77%, 65%)
CMYKcmyk(76.6%, 74.9%, 0%, 34.5%)
CIE-LABlab(26.38, 42.12, -66.54)
CIE-LCHlch(26.38, 78.76, 302.33°)
OKLaboklab(38.32% 0.0058 -0.1926)
OKLCHoklch(38.32% 0.193 271.7)
XYZxyz(8.6374, 4.8764, 37.0377)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272AA7 #A7A427
analogous
#276AA7 #272AA7 #6427A7
triadic
#272AA7 #A7272A #2AA727
tetradic
#272AA7 #A7276A #A7A427 #27A764
square
#272AA7 #A7276A #A7A427 #27A764
split-complementary
#272AA7 #A76427 #6AA727
monochromatic
#101144 #1B1E75 #272AA7 #3A3ED1 #6C6EDD

Accessibility & contrast

On white

10.63
#272AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#272AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272AA7
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272AA7#FFFFFF#000000##FFFFFF
##272AA71.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #272aa7;
/* rgb */ color: rgb(39, 42, 167);
/* oklch */ color: oklch(38.3% 0.193 271.7);
Tailwind
colors: {
  custom: {
    50: '#7765c2',
    500: '#272aa7',
    950: '#000000',
  },
}
SCSS
$custom: #272aa7;
$custom-light: #7765c2;
$custom-dark: #000000;
JSON
{
  "hex": "#272aa7",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 238.594,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38316,
    "c": 0.19273,
    "h": 271.7
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#272AA7
secondary
#C3C167
accent
#E143E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #272AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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