#272AA6#272AA6

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

Color values

HEX#272AA6
RGBrgb(39, 42, 166)
HSLhsl(239, 62%, 40%)
HSVhsv(239, 77%, 65%)
CMYKcmyk(76.5%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.27, 41.78, -66.12)
CIE-LCHlch(26.27, 78.21, 302.29°)
OKLaboklab(38.21% 0.0059 -0.1914)
OKLCHoklch(38.21% 0.191 271.8)
XYZxyz(8.5453, 4.8395, 36.5528)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272AA6 #A6A327
analogous
#2769A6 #272AA6 #6427A6
triadic
#272AA6 #A6272A #2AA627
tetradic
#272AA6 #A62769 #A6A327 #27A664
square
#272AA6 #A62769 #A6A327 #27A664
split-complementary
#272AA6 #A66427 #69A627
monochromatic
#101143 #1B1D74 #272AA6 #3A3DD1 #6B6EDC

Accessibility & contrast

On white

10.67
#272AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#272AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272AA6
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272AA6#FFFFFF#000000##FFFFFF
##272AA61.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #272aa6;
/* rgb */ color: rgb(39, 42, 166);
/* oklch */ color: oklch(38.2% 0.191 271.8);
Tailwind
colors: {
  custom: {
    50: '#7765c2',
    500: '#272aa6',
    950: '#000000',
  },
}
SCSS
$custom: #272aa6;
$custom-light: #7765c2;
$custom-dark: #000000;
JSON
{
  "hex": "#272aa6",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 238.583,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.19148,
    "h": 271.8
  },
  "luminance": 0.0484
}

Semantic roles & 50–950 ramp

primary
#272AA6
secondary
#C3C066
accent
#E143E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #272AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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