#272A8A#272A8A

#272A8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.155 H 273.7°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#272A8A
RGBrgb(39, 42, 138)
HSLhsl(238, 56%, 35%)
HSVhsv(238, 72%, 54%)
CMYKcmyk(71.7%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.41, 31.95, -53.64)
CIE-LCHlch(23.41, 62.44, 300.78°)
OKLaboklab(35.3% 0.0101 -0.155)
OKLCHoklch(35.3% 0.155 273.7)
XYZxyz(6.2506, 3.9216, 24.4674)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A8A #8A8727
analogous
#275B8A #272A8A #56278A
triadic
#272A8A #8A272A #2A8A27
tetradic
#272A8A #8A275B #8A8727 #278A56
square
#272A8A #8A275B #8A8727 #278A56
split-complementary
#272A8A #8A5627 #5B8A27
monochromatic
#0C0D2B #1A1B5A #272A8A #3439BA #5B5ED1

Accessibility & contrast

On white

11.77
#272A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#272A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A8A
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A8A#FFFFFF#000000##FFFFFF
##272A8A1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272a8a;
/* rgb */ color: rgb(39, 42, 138);
/* oklch */ color: oklch(35.3% 0.155 273.7);
Tailwind
colors: {
  custom: {
    50: '#7064ad',
    500: '#272a8a',
    950: '#000000',
  },
}
SCSS
$custom: #272a8a;
$custom-light: #7064ad;
$custom-dark: #000000;
JSON
{
  "hex": "#272a8a",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 238.182,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35296,
    "c": 0.15534,
    "h": 273.7
  },
  "luminance": 0.03922
}

Semantic roles & 50–950 ramp

primary
#272A8A
secondary
#B6B357
accent
#DB49DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #272A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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