#272CA3#272CA3

#272CA3 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.186 H 271.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#272CA3
RGBrgb(39, 44, 163)
HSLhsl(238, 61%, 40%)
HSVhsv(238, 76%, 64%)
CMYKcmyk(76.1%, 73%, 0%, 36.1%)
CIE-LABlab(26.38, 39.57, -64.12)
CIE-LCHlch(26.38, 75.35, 301.68°)
OKLaboklab(38.19% 0.0055 -0.1856)
OKLCHoklch(38.19% 0.186 271.7)
XYZxyz(8.3460, 4.8762, 35.1446)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272CA3 #A39E27
analogous
#276AA3 #272CA3 #6027A3
triadic
#272CA3 #A3272C #2CA327
tetradic
#272CA3 #A3276A #A39E27 #27A360
square
#272CA3 #A3276A #A39E27 #27A360
split-complementary
#272CA3 #A36027 #6AA327
monochromatic
#0F1140 #1B1F72 #272CA3 #383ECF #696EDB

Accessibility & contrast

On white

10.63
#272CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272CA3
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272CA3#FFFFFF#000000##FFFFFF
##272CA31.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #272ca3;
/* rgb */ color: rgb(39, 44, 163);
/* oklch */ color: oklch(38.2% 0.186 271.7);
Tailwind
colors: {
  custom: {
    50: '#7666bf',
    500: '#272ca3',
    950: '#000000',
  },
}
SCSS
$custom: #272ca3;
$custom-light: #7666bf;
$custom-dark: #000000;
JSON
{
  "hex": "#272ca3",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 237.581,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3819,
    "c": 0.18569,
    "h": 271.7
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#272CA3
secondary
#C1BE64
accent
#DE43E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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