#272A86#272A86

#272A86 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.150 H 274.0°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#272A86
RGBrgb(39, 42, 134)
HSLhsl(238, 55%, 34%)
HSVhsv(238, 71%, 53%)
CMYKcmyk(70.9%, 68.7%, 0%, 47.5%)
CIE-LABlab(23.03, 30.50, -51.77)
CIE-LCHlch(23.03, 60.09, 300.50°)
OKLaboklab(34.9% 0.0106 -0.1495)
OKLCHoklch(34.9% 0.15 274)
XYZxyz(5.9663, 3.8079, 22.9702)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A86 #868327
analogous
#275A86 #272A86 #542786
triadic
#272A86 #86272A #2A8627
tetradic
#272A86 #86275A #868327 #278654
square
#272A86 #86275A #868327 #278654
split-complementary
#272A86 #865427 #5A8627
monochromatic
#0B0C27 #191B57 #272A86 #3539B5 #595DCF

Accessibility & contrast

On white

11.92
#272A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#272A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A86
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A86#FFFFFF#000000##FFFFFF
##272A861.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272a86;
/* rgb */ color: rgb(39, 42, 134);
/* oklch */ color: oklch(34.9% 0.150 274.0);
Tailwind
colors: {
  custom: {
    50: '#6f64aa',
    500: '#272a86',
    950: '#000000',
  },
}
SCSS
$custom: #272a86;
$custom-light: #6f64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#272a86",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 238.105,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34899,
    "c": 0.14991,
    "h": 274
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#272A86
secondary
#B4B155
accent
#DA4ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #272A86

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

Preview Lab → · Contrast checker → · Palette generator →

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