#272CA6#272CA6

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

Color values

HEX#272CA6
RGBrgb(39, 44, 166)
HSLhsl(238, 62%, 40%)
HSVhsv(238, 77%, 65%)
CMYKcmyk(76.5%, 73.5%, 0%, 34.9%)
CIE-LABlab(26.69, 40.61, -65.42)
CIE-LCHlch(26.69, 77.00, 301.83°)
OKLaboklab(38.51% 0.005 -0.1894)
OKLCHoklch(38.51% 0.189 271.5)
XYZxyz(8.6180, 4.9849, 36.5770)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272CA6 #A6A127
analogous
#276BA6 #272CA6 #6227A6
triadic
#272CA6 #A6272C #2CA627
tetradic
#272CA6 #A6276B #A6A127 #27A662
square
#272CA6 #A6276B #A6A127 #27A662
split-complementary
#272CA6 #A66227 #6BA627
monochromatic
#101243 #1B1F74 #272CA6 #3A40D1 #6B70DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##272CA6#FFFFFF#000000##FFFFFF
##272CA61.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)
#0045AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #272ca6;
/* rgb */ color: rgb(39, 44, 166);
/* oklch */ color: oklch(38.5% 0.189 271.5);
Tailwind
colors: {
  custom: {
    50: '#7766c2',
    500: '#272ca6',
    950: '#000000',
  },
}
SCSS
$custom: #272ca6;
$custom-light: #7766c2;
$custom-dark: #000000;
JSON
{
  "hex": "#272ca6",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 237.638,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38507,
    "c": 0.18946,
    "h": 271.5
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#272CA6
secondary
#C3BF66
accent
#DF43E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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