#272AA5#272AA5

#272AA5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.190 H 271.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#272AA5
RGBrgb(39, 42, 165)
HSLhsl(239, 62%, 40%)
HSVhsv(239, 76%, 65%)
CMYKcmyk(76.4%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.17, 41.44, -65.69)
CIE-LCHlch(26.17, 77.67, 302.25°)
OKLaboklab(38.1% 0.0061 -0.1902)
OKLCHoklch(38.1% 0.19 271.8)
XYZxyz(8.4539, 4.8030, 36.0715)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272AA5 #A5A227
analogous
#2769A5 #272AA5 #6327A5
triadic
#272AA5 #A5272A #2AA527
tetradic
#272AA5 #A52769 #A5A227 #27A563
square
#272AA5 #A52769 #A5A227 #27A563
split-complementary
#272AA5 #A56327 #69A527
monochromatic
#101142 #1B1D74 #272AA5 #393DD0 #6A6DDC

Accessibility & contrast

On white

10.71
#272AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#272AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272AA5
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272AA5#FFFFFF#000000##FFFFFF
##272AA51.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #272aa5;
/* rgb */ color: rgb(39, 42, 165);
/* oklch */ color: oklch(38.1% 0.190 271.8);
Tailwind
colors: {
  custom: {
    50: '#7765c1',
    500: '#272aa5',
    950: '#000000',
  },
}
SCSS
$custom: #272aa5;
$custom-light: #7765c1;
$custom-dark: #000000;
JSON
{
  "hex": "#272aa5",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 238.571,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.38101,
    "c": 0.19025,
    "h": 271.8
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #272AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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