#272AAA#272AAA

#272AAA is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.196 H 271.5°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#272AAA
RGBrgb(39, 42, 170)
HSLhsl(239, 63%, 41%)
HSVhsv(239, 77%, 67%)
CMYKcmyk(77.1%, 75.3%, 0%, 33.3%)
CIE-LABlab(26.70, 43.14, -67.82)
CIE-LCHlch(26.70, 80.38, 302.46°)
OKLaboklab(38.64% 0.0052 -0.1963)
OKLCHoklch(38.64% 0.196 271.5)
XYZxyz(8.9179, 4.9886, 38.5153)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272AAA #AAA727
analogous
#276BAA #272AAA #6527AA
triadic
#272AAA #AA272A #2AAA27
tetradic
#272AAA #AA276B #AAA727 #27AA65
square
#272AAA #AA276B #AAA727 #27AA65
split-complementary
#272AAA #AA6527 #6BAA27
monochromatic
#101146 #1C1E78 #272AAA #3C3FD2 #6E70DE

Accessibility & contrast

On white

10.51
#272AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#272AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272AAA
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272AAA#FFFFFF#000000##FFFFFF
##272AAA1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#0039A8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #272aaa;
/* rgb */ color: rgb(39, 42, 170);
/* oklch */ color: oklch(38.6% 0.196 271.5);
Tailwind
colors: {
  custom: {
    50: '#7865c5',
    500: '#272aaa',
    950: '#000000',
  },
}
SCSS
$custom: #272aaa;
$custom-light: #7865c5;
$custom-dark: #000000;
JSON
{
  "hex": "#272aaa",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 238.626,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38641,
    "c": 0.19642,
    "h": 271.5
  },
  "luminance": 0.0499
}

Semantic roles & 50–950 ramp

primary
#272AAA
secondary
#C4C269
accent
#E242E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #272AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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