#272D7D#272D7D

#272D7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.134 H 273.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#272D7D
RGBrgb(39, 45, 125)
HSLhsl(236, 52%, 32%)
HSVhsv(236, 69%, 49%)
CMYKcmyk(68.8%, 64%, 0%, 51%)
CIE-LABlab(22.96, 25.18, -46.22)
CIE-LCHlch(22.96, 52.63, 298.58°)
OKLaboklab(34.6% 0.0089 -0.1332)
OKLCHoklch(34.6% 0.134 273.8)
XYZxyz(5.4755, 3.7883, 19.8407)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272D7D #7D7727
analogous
#27587D #272D7D #4C277D
triadic
#272D7D #7D272D #2D7D27
tetradic
#272D7D #7D2758 #7D7727 #277D4C
square
#272D7D #7D2758 #7D7727 #277D4C
split-complementary
#272D7D #7D4C27 #587D27
monochromatic
#0A0B20 #181C4E #272D7D #363EAC #555DCA

Accessibility & contrast

On white

11.95
#272D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#272D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272D7D
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272D7D#FFFFFF#000000##FFFFFF
##272D7D1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272d7d;
/* rgb */ color: rgb(39, 45, 125);
/* oklch */ color: oklch(34.6% 0.134 273.8);
Tailwind
colors: {
  custom: {
    50: '#6d66a3',
    500: '#272d7d',
    950: '#000000',
  },
}
SCSS
$custom: #272d7d;
$custom-light: #6d66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#272d7d",
  "rgb": {
    "r": 39,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 235.814,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34596,
    "c": 0.13352,
    "h": 273.8
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#272D7D
secondary
#AFA851
accent
#D24CDC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #272D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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