#272897#272897

#272897 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.175 H 273.1°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#272897
RGBrgb(39, 40, 151)
HSLhsl(239, 59%, 37%)
HSVhsv(239, 74%, 59%)
CMYKcmyk(74.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.27, 37.80, -60.28)
CIE-LCHlch(24.27, 71.15, 302.09°)
OKLaboklab(36.31% 0.0094 -0.1744)
OKLCHoklch(36.31% 0.175 273.1)
XYZxyz(7.1795, 4.1826, 29.7011)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272897 #979627
analogous
#276097 #272897 #5E2797
triadic
#272897 #972728 #289727
tetradic
#272897 #972760 #979627 #27975E
square
#272897 #972760 #979627 #27975E
split-complementary
#272897 #975E27 #609727
monochromatic
#0E0E36 #1A1B66 #272897 #3435C8 #6263D6

Accessibility & contrast

On white

11.43
#272897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#272897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272897
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272897#FFFFFF#000000##FFFFFF
##2728971.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #272897;
/* rgb */ color: rgb(39, 40, 151);
/* oklch */ color: oklch(36.3% 0.175 273.1);
Tailwind
colors: {
  custom: {
    50: '#7363b7',
    500: '#272897',
    950: '#000000',
  },
}
SCSS
$custom: #272897;
$custom-light: #7363b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272897",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 239.464,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36306,
    "c": 0.17466,
    "h": 273.1
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#272897
secondary
#BCBB5E
accent
#E146E2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #272897

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

Preview Lab → · Contrast checker → · Palette generator →

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