#272A7D#272A7D

#272A7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.137 H 274.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#272A7D
RGBrgb(39, 42, 125)
HSLhsl(238, 52%, 32%)
HSVhsv(238, 69%, 49%)
CMYKcmyk(68.8%, 66.4%, 0%, 51%)
CIE-LABlab(22.19, 27.20, -47.48)
CIE-LCHlch(22.19, 54.72, 299.81°)
OKLaboklab(34.03% 0.0114 -0.137)
OKLCHoklch(34.03% 0.137 274.8)
XYZxyz(5.3651, 3.5675, 19.8039)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A7D #7D7A27
analogous
#27557D #272A7D #4F277D
triadic
#272A7D #7D272A #2A7D27
tetradic
#272A7D #7D2755 #7D7A27 #277D4F
square
#272A7D #7D2755 #7D7A27 #277D4F
split-complementary
#272A7D #7D4F27 #557D27
monochromatic
#0A0B20 #181A4E #272A7D #363AAC #5559CA

Accessibility & contrast

On white

12.25
#272A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#272A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A7D
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A7D#FFFFFF#000000##FFFFFF
##272A7D1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #272a7d;
/* rgb */ color: rgb(39, 42, 125);
/* oklch */ color: oklch(34.0% 0.137 274.8);
Tailwind
colors: {
  custom: {
    50: '#6d63a3',
    500: '#272a7d',
    950: '#000000',
  },
}
SCSS
$custom: #272a7d;
$custom-light: #6d63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#272a7d",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 237.907,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34029,
    "c": 0.13743,
    "h": 274.8
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#272A7D
secondary
#AFAB51
accent
#D74CDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #272A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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