#272C8B#272C8B

#272C8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.154 H 273.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#272C8B
RGBrgb(39, 44, 139)
HSLhsl(237, 56%, 35%)
HSVhsv(237, 72%, 55%)
CMYKcmyk(71.9%, 68.3%, 0%, 45.5%)
CIE-LABlab(23.99, 31.02, -53.32)
CIE-LCHlch(23.99, 61.68, 300.19°)
OKLaboklab(35.74% 0.0086 -0.1541)
OKLCHoklch(35.74% 0.154 273.2)
XYZxyz(6.3960, 4.0962, 24.8747)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272C8B #8B8627
analogous
#275E8B #272C8B #54278B
triadic
#272C8B #8B272C #2C8B27
tetradic
#272C8B #8B275E #8B8627 #278B54
square
#272C8B #8B275E #8B8627 #278B54
split-complementary
#272C8B #8B5427 #5E8B27
monochromatic
#0C0E2B #1A1D5B #272C8B #343BBB #5B61D1

Accessibility & contrast

On white

11.54
#272C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#272C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272C8B
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272C8B#FFFFFF#000000##FFFFFF
##272C8B1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #272c8b;
/* rgb */ color: rgb(39, 44, 139);
/* oklch */ color: oklch(35.7% 0.154 273.2);
Tailwind
colors: {
  custom: {
    50: '#7065ae',
    500: '#272c8b',
    950: '#000000',
  },
}
SCSS
$custom: #272c8b;
$custom-light: #7065ae;
$custom-dark: #000000;
JSON
{
  "hex": "#272c8b",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 237,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35743,
    "c": 0.1543,
    "h": 273.2
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#272C8B
secondary
#B6B158
accent
#D848DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #272C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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