#272C7D#272C7D

#272C7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.135 H 274.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#272C7D
RGBrgb(39, 44, 125)
HSLhsl(237, 52%, 32%)
HSVhsv(237, 69%, 49%)
CMYKcmyk(68.8%, 64.8%, 0%, 51%)
CIE-LABlab(22.70, 25.86, -46.64)
CIE-LCHlch(22.70, 53.33, 299.00°)
OKLaboklab(34.41% 0.0097 -0.1345)
OKLCHoklch(34.41% 0.135 274.1)
XYZxyz(5.4378, 3.7129, 19.8281)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272C7D #7D7827
analogous
#27577D #272C7D #4D277D
triadic
#272C7D #7D272C #2C7D27
tetradic
#272C7D #7D2757 #7D7827 #277D4D
square
#272C7D #7D2757 #7D7827 #277D4D
split-complementary
#272C7D #7D4D27 #577D27
monochromatic
#0A0B20 #181C4E #272C7D #363CAC #555BCA

Accessibility & contrast

On white

12.05
#272C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#272C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272C7D
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272C7D#FFFFFF#000000##FFFFFF
##272C7D1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272c7d;
/* rgb */ color: rgb(39, 44, 125);
/* oklch */ color: oklch(34.4% 0.135 274.1);
Tailwind
colors: {
  custom: {
    50: '#6d65a3',
    500: '#272c7d',
    950: '#000000',
  },
}
SCSS
$custom: #272c7d;
$custom-light: #6d65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#272c7d",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 236.512,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34405,
    "c": 0.13484,
    "h": 274.1
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#272C7D
secondary
#AFA951
accent
#D34CDC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #272C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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