#272A80#272A80

#272A80 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.142 H 274.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#272A80
RGBrgb(39, 42, 128)
HSLhsl(238, 53%, 33%)
HSVhsv(238, 70%, 50%)
CMYKcmyk(69.5%, 67.2%, 0%, 49.8%)
CIE-LABlab(22.46, 28.31, -48.92)
CIE-LCHlch(22.46, 56.52, 300.05°)
OKLaboklab(34.32% 0.0112 -0.1412)
OKLCHoklch(34.32% 0.142 274.5)
XYZxyz(5.5597, 3.6453, 20.8285)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A80 #807D27
analogous
#275680 #272A80 #512780
triadic
#272A80 #80272A #2A8027
tetradic
#272A80 #802756 #807D27 #278051
square
#272A80 #802756 #807D27 #278051
split-complementary
#272A80 #805127 #568027
monochromatic
#0A0B22 #191B51 #272A80 #3539AF #565ACB

Accessibility & contrast

On white

12.14
#272A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#272A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A80
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A80#FFFFFF#000000##FFFFFF
##272A801.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #272a80;
/* rgb */ color: rgb(39, 42, 128);
/* oklch */ color: oklch(34.3% 0.142 274.5);
Tailwind
colors: {
  custom: {
    50: '#6e64a6',
    500: '#272a80',
    950: '#000000',
  },
}
SCSS
$custom: #272a80;
$custom-light: #6e64a6;
$custom-dark: #000000;
JSON
{
  "hex": "#272a80",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 237.978,
    "s": 53.293,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34316,
    "c": 0.14164,
    "h": 274.5
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#272A80
secondary
#B0AD53
accent
#D84BDD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #272A80

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

Preview Lab → · Contrast checker → · Palette generator →

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