#272CAC#272CAC

#272CAC is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.197 H 271.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#272CAC
RGBrgb(39, 44, 172)
HSLhsl(238, 63%, 41%)
HSVhsv(238, 77%, 67%)
CMYKcmyk(77.3%, 74.4%, 0%, 32.5%)
CIE-LABlab(27.33, 42.67, -67.99)
CIE-LCHlch(27.33, 80.27, 302.11°)
OKLaboklab(39.15% 0.0041 -0.1969)
OKLCHoklch(39.15% 0.197 271.2)
XYZxyz(9.1813, 5.2103, 39.5435)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272CAC #ACA727
analogous
#276FAC #272CAC #6527AC
triadic
#272CAC #AC272C #2CAC27
tetradic
#272CAC #AC276F #ACA727 #27AC65
square
#272CAC #AC276F #ACA727 #27AC65
split-complementary
#272CAC #AC6527 #6FAC27
monochromatic
#101248 #1C1F7A #272CAC #3D43D3 #6F73DE

Accessibility & contrast

On white

10.28
#272CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#272CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272CAC
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272CAC#FFFFFF#000000##FFFFFF
##272CAC1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003AAA
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #272cac;
/* rgb */ color: rgb(39, 44, 172);
/* oklch */ color: oklch(39.1% 0.197 271.2);
Tailwind
colors: {
  custom: {
    50: '#7867c6',
    500: '#272cac',
    950: '#000000',
  },
}
SCSS
$custom: #272cac;
$custom-light: #7867c6;
$custom-dark: #000000;
JSON
{
  "hex": "#272cac",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 237.744,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.19691,
    "h": 271.2
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#272CAC
secondary
#C5C26A
accent
#E042E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #272CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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