#272A8B#272A8B

#272A8B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.157 H 273.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#272A8B
RGBrgb(39, 42, 139)
HSLhsl(238, 56%, 35%)
HSVhsv(238, 72%, 55%)
CMYKcmyk(71.9%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.51, 32.31, -54.11)
CIE-LCHlch(23.51, 63.02, 300.84°)
OKLaboklab(35.4% 0.01 -0.1564)
OKLCHoklch(35.4% 0.157 273.6)
XYZxyz(6.3233, 3.9507, 24.8504)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A8B #8B8827
analogous
#275C8B #272A8B #56278B
triadic
#272A8B #8B272A #2A8B27
tetradic
#272A8B #8B275C #8B8827 #278B56
square
#272A8B #8B275C #8B8827 #278B56
split-complementary
#272A8B #8B5627 #5C8B27
monochromatic
#0C0D2B #1A1C5B #272A8B #3438BB #5B5FD1

Accessibility & contrast

On white

11.73
#272A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#272A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A8B
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A8B#FFFFFF#000000##FFFFFF
##272A8B1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272a8b;
/* rgb */ color: rgb(39, 42, 139);
/* oklch */ color: oklch(35.4% 0.157 273.6);
Tailwind
colors: {
  custom: {
    50: '#7064ae',
    500: '#272a8b',
    950: '#000000',
  },
}
SCSS
$custom: #272a8b;
$custom-light: #7064ae;
$custom-dark: #000000;
JSON
{
  "hex": "#272a8b",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 238.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35396,
    "c": 0.15669,
    "h": 273.6
  },
  "luminance": 0.03951
}

Semantic roles & 50–950 ramp

primary
#272A8B
secondary
#B6B358
accent
#DB48DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #272A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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