#272297#272297

#272297 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.181 H 273.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#272297
RGBrgb(39, 34, 151)
HSLhsl(243, 63%, 36%)
HSVhsv(243, 77%, 59%)
CMYKcmyk(74.2%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.03, 41.28, -62.32)
CIE-LCHlch(23.03, 74.75, 303.52°)
OKLaboklab(35.43% 0.0124 -0.1803)
OKLCHoklch(35.43% 0.181 273.9)
XYZxyz(6.9928, 3.8091, 29.6388)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272297 #929722
analogous
#225897 #272297 #622297
triadic
#272297 #972722 #229727
tetradic
#272297 #972258 #929722 #229762
square
#272297 #972258 #929722 #229762
split-complementary
#272297 #976222 #589722
monochromatic
#0D0C33 #1A1765 #272297 #342DC9 #5F5ADA

Accessibility & contrast

On white

11.92
#272297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#272297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##272297#FFFFFF#000000##FFFFFF
##2722971.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)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272297;
/* rgb */ color: rgb(39, 34, 151);
/* oklch */ color: oklch(35.4% 0.181 273.9);
Tailwind
colors: {
  custom: {
    50: '#745fb7',
    500: '#272297',
    950: '#000000',
  },
}
SCSS
$custom: #272297;
$custom-light: #745fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#272297",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 242.564,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35429,
    "c": 0.18072,
    "h": 273.9
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#272297
secondary
#BABE57
accent
#E642DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272297

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

Preview Lab → · Contrast checker → · Palette generator →

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