#272EA6#272EA6

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

Color values

HEX#272EA6
RGBrgb(39, 46, 166)
HSLhsl(237, 62%, 40%)
HSVhsv(237, 77%, 65%)
CMYKcmyk(76.5%, 72.3%, 0%, 34.9%)
CIE-LABlab(27.12, 39.41, -64.71)
CIE-LCHlch(27.12, 75.77, 301.34°)
OKLaboklab(38.82% 0.0041 -0.1873)
OKLCHoklch(38.82% 0.187 271.2)
XYZxyz(8.6943, 5.1376, 36.6024)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272EA6 #A69F27
analogous
#276DA6 #272EA6 #6027A6
triadic
#272EA6 #A6272E #2EA627
tetradic
#272EA6 #A6276D #A69F27 #27A660
square
#272EA6 #A6276D #A69F27 #27A660
split-complementary
#272EA6 #A66027 #6DA627
monochromatic
#101343 #1B2074 #272EA6 #3A42D1 #6B71DC

Accessibility & contrast

On white

10.36
#272EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272EA6
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272EA6#FFFFFF#000000##FFFFFF
##272EA61.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #272ea6;
/* rgb */ color: rgb(39, 46, 166);
/* oklch */ color: oklch(38.8% 0.187 271.2);
Tailwind
colors: {
  custom: {
    50: '#7768c2',
    500: '#272ea6',
    950: '#000000',
  },
}
SCSS
$custom: #272ea6;
$custom-light: #7768c2;
$custom-dark: #000000;
JSON
{
  "hex": "#272ea6",
  "rgb": {
    "r": 39,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 236.693,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38816,
    "c": 0.18737,
    "h": 271.2
  },
  "luminance": 0.05138
}

Semantic roles & 50–950 ramp

primary
#272EA6
secondary
#C3BE66
accent
#DC43E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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