#272D8D#272D8D

#272D8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.156 H 272.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#272D8D
RGBrgb(39, 45, 141)
HSLhsl(236, 57%, 35%)
HSVhsv(236, 72%, 55%)
CMYKcmyk(72.3%, 68.1%, 0%, 44.7%)
CIE-LABlab(24.42, 31.09, -53.85)
CIE-LCHlch(24.42, 62.19, 300.00°)
OKLaboklab(36.12% 0.0077 -0.1556)
OKLCHoklch(36.12% 0.156 272.8)
XYZxyz(6.5812, 4.2306, 25.6639)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272D8D #8D8727
analogous
#27608D #272D8D #54278D
triadic
#272D8D #8D272D #2D8D27
tetradic
#272D8D #8D2760 #8D8727 #278D54
square
#272D8D #8D2760 #8D8727 #278D54
split-complementary
#272D8D #8D5427 #608D27
monochromatic
#0C0E2D #1A1E5D #272D8D #343CBD #5C63D2

Accessibility & contrast

On white

11.37
#272D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#272D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272D8D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272D8D#FFFFFF#000000##FFFFFF
##272D8D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #272d8d;
/* rgb */ color: rgb(39, 45, 141);
/* oklch */ color: oklch(36.1% 0.156 272.8);
Tailwind
colors: {
  custom: {
    50: '#7166af',
    500: '#272d8d',
    950: '#000000',
  },
}
SCSS
$custom: #272d8d;
$custom-light: #7166af;
$custom-dark: #000000;
JSON
{
  "hex": "#272d8d",
  "rgb": {
    "r": 39,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 236.471,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36115,
    "c": 0.15581,
    "h": 272.8
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#272D8D
secondary
#B7B259
accent
#D748E0
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #272D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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