#272287#272287

#272287 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.160 H 275.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#272287
RGBrgb(39, 34, 135)
HSLhsl(243, 60%, 33%)
HSVhsv(243, 75%, 53%)
CMYKcmyk(71.1%, 74.8%, 0%, 47.1%)
CIE-LABlab(21.30, 35.86, -55.24)
CIE-LCHlch(21.30, 65.86, 302.99°)
OKLaboklab(33.69% 0.0158 -0.1597)
OKLCHoklch(33.69% 0.16 275.6)
XYZxyz(5.7805, 3.3241, 23.2540)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272287 #828722
analogous
#224F87 #272287 #592287
triadic
#272287 #872722 #228727
tetradic
#272287 #87224F #828722 #228759
square
#272287 #87224F #828722 #228759
split-complementary
#272287 #875922 #4F8722
monochromatic
#0B0925 #191656 #272287 #352EB8 #5750D3

Accessibility & contrast

On white

12.61
#272287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#272287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272287
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272287#FFFFFF#000000##FFFFFF
##2722871.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #272287;
/* rgb */ color: rgb(39, 34, 135);
/* oklch */ color: oklch(33.7% 0.160 275.6);
Tailwind
colors: {
  custom: {
    50: '#705eab',
    500: '#272287',
    950: '#000000',
  },
}
SCSS
$custom: #272287;
$custom-light: #705eab;
$custom-dark: #000000;
JSON
{
  "hex": "#272287",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 242.97,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33687,
    "c": 0.16045,
    "h": 275.6
  },
  "luminance": 0.03325
}

Semantic roles & 50–950 ramp

primary
#272287
secondary
#B1B74E
accent
#E345DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #272287

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

Preview Lab → · Contrast checker → · Palette generator →

#272287 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva