#272A8D#272A8D

#272A8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.159 H 273.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#272A8D
RGBrgb(39, 42, 141)
HSLhsl(238, 57%, 35%)
HSVhsv(238, 72%, 55%)
CMYKcmyk(72.3%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.70, 33.03, -55.03)
CIE-LCHlch(23.70, 64.18, 300.97°)
OKLaboklab(35.6% 0.0097 -0.1591)
OKLCHoklch(35.6% 0.159 273.5)
XYZxyz(6.4708, 4.0097, 25.6271)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A8D #8D8A27
analogous
#275D8D #272A8D #57278D
triadic
#272A8D #8D272A #2A8D27
tetradic
#272A8D #8D275D #8D8A27 #278D57
square
#272A8D #8D275D #8D8A27 #278D57
split-complementary
#272A8D #8D5727 #5D8D27
monochromatic
#0C0D2D #1A1C5D #272A8D #3438BD #5C60D2

Accessibility & contrast

On white

11.65
#272A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#272A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A8D
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A8D#FFFFFF#000000##FFFFFF
##272A8D1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272a8d;
/* rgb */ color: rgb(39, 42, 141);
/* oklch */ color: oklch(35.6% 0.159 273.5);
Tailwind
colors: {
  custom: {
    50: '#7164af',
    500: '#272a8d',
    950: '#000000',
  },
}
SCSS
$custom: #272a8d;
$custom-light: #7164af;
$custom-dark: #000000;
JSON
{
  "hex": "#272a8d",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 238.235,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35597,
    "c": 0.15937,
    "h": 273.5
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#272A8D
secondary
#B7B459
accent
#DB48E0
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #272A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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