#272FA4#272FA4

#272FA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.184 H 271.2°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#272FA4
RGBrgb(39, 47, 164)
HSLhsl(236, 62%, 40%)
HSVhsv(236, 76%, 64%)
CMYKcmyk(76.2%, 71.3%, 0%, 35.7%)
CIE-LABlab(27.14, 38.10, -63.48)
CIE-LCHlch(27.14, 74.03, 300.97°)
OKLaboklab(38.77% 0.0038 -0.1837)
OKLCHoklch(38.77% 0.184 271.2)
XYZxyz(8.5518, 5.1438, 35.6569)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272FA4 #A49C27
analogous
#276EA4 #272FA4 #5E27A4
triadic
#272FA4 #A4272F #2FA427
tetradic
#272FA4 #A4276E #A49C27 #27A45E
square
#272FA4 #A4276E #A49C27 #27A45E
split-complementary
#272FA4 #A45E27 #6EA427
monochromatic
#0F1341 #1B2173 #272FA4 #3842D0 #6A71DC

Accessibility & contrast

On white

10.35
#272FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#272FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272FA4
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272FA4#FFFFFF#000000##FFFFFF
##272FA41.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #272fa4;
/* rgb */ color: rgb(39, 47, 164);
/* oklch */ color: oklch(38.8% 0.184 271.2);
Tailwind
colors: {
  custom: {
    50: '#7668c0',
    500: '#272fa4',
    950: '#000000',
  },
}
SCSS
$custom: #272fa4;
$custom-light: #7668c0;
$custom-dark: #000000;
JSON
{
  "hex": "#272fa4",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 236.16,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38767,
    "c": 0.18376,
    "h": 271.2
  },
  "luminance": 0.05145
}

Semantic roles & 50–950 ramp

primary
#272FA4
secondary
#C2BC65
accent
#DA43E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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