#272D8E#272D8E

#272D8E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.157 H 272.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#272D8E
RGBrgb(39, 45, 142)
HSLhsl(237, 57%, 35%)
HSVhsv(237, 73%, 56%)
CMYKcmyk(72.5%, 68.3%, 0%, 44.3%)
CIE-LABlab(24.51, 31.46, -54.32)
CIE-LCHlch(24.51, 62.77, 300.08°)
OKLaboklab(36.21% 0.0076 -0.157)
OKLCHoklch(36.21% 0.157 272.8)
XYZxyz(6.6559, 4.2604, 26.0575)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272D8E #8E8827
analogous
#27608E #272D8E #54278E
triadic
#272D8E #8E272D #2D8E27
tetradic
#272D8E #8E2760 #8E8827 #278E54
square
#272D8E #8E2760 #8E8827 #278E54
split-complementary
#272D8E #8E5427 #608E27
monochromatic
#0D0F2E #1A1E5E #272D8E #343CBE #5D64D2

Accessibility & contrast

On white

11.34
#272D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272D8E
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272D8E#FFFFFF#000000##FFFFFF
##272D8E1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #272d8e;
/* rgb */ color: rgb(39, 45, 142);
/* oklch */ color: oklch(36.2% 0.157 272.8);
Tailwind
colors: {
  custom: {
    50: '#7166b0',
    500: '#272d8e',
    950: '#000000',
  },
}
SCSS
$custom: #272d8e;
$custom-light: #7166b0;
$custom-dark: #000000;
JSON
{
  "hex": "#272d8e",
  "rgb": {
    "r": 39,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 236.505,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.15716,
    "h": 272.8
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#272D8E
secondary
#B8B259
accent
#D748E0
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #272D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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