#272CA4#272CA4

#272CA4 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.187 H 271.6°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#272CA4
RGBrgb(39, 44, 164)
HSLhsl(238, 62%, 40%)
HSVhsv(238, 76%, 64%)
CMYKcmyk(76.2%, 73.2%, 0%, 35.7%)
CIE-LABlab(26.48, 39.92, -64.56)
CIE-LCHlch(26.48, 75.90, 301.73°)
OKLaboklab(38.3% 0.0053 -0.1869)
OKLCHoklch(38.3% 0.187 271.6)
XYZxyz(8.4360, 4.9121, 35.6183)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272CA4 #A49F27
analogous
#276BA4 #272CA4 #6127A4
triadic
#272CA4 #A4272C #2CA427
tetradic
#272CA4 #A4276B #A49F27 #27A461
square
#272CA4 #A4276B #A49F27 #27A461
split-complementary
#272CA4 #A46127 #6BA427
monochromatic
#0F1141 #1B1F73 #272CA4 #383ED0 #6A6EDC

Accessibility & contrast

On white

10.59
#272CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#272CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272CA4
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272CA4#FFFFFF#000000##FFFFFF
##272CA41.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #272ca4;
/* rgb */ color: rgb(39, 44, 164);
/* oklch */ color: oklch(38.3% 0.187 271.6);
Tailwind
colors: {
  custom: {
    50: '#7666c0',
    500: '#272ca4',
    950: '#000000',
  },
}
SCSS
$custom: #272ca4;
$custom-light: #7666c0;
$custom-dark: #000000;
JSON
{
  "hex": "#272ca4",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 237.6,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38295,
    "c": 0.18695,
    "h": 271.6
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

primary
#272CA4
secondary
#C2BE65
accent
#DE43E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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