#272396#272396

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

Color values

HEX#272396
RGBrgb(39, 35, 150)
HSLhsl(242, 62%, 36%)
HSVhsv(242, 77%, 59%)
CMYKcmyk(74%, 76.7%, 0%, 41.2%)
CIE-LABlab(23.12, 40.38, -61.56)
CIE-LCHlch(23.12, 73.63, 303.26°)
OKLaboklab(35.46% 0.0122 -0.1781)
OKLCHoklch(35.46% 0.179 273.9)
XYZxyz(6.9409, 3.8347, 29.2226)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272396 #929623
analogous
#235996 #272396 #612396
triadic
#272396 #962723 #239627
tetradic
#272396 #962359 #929623 #239661
square
#272396 #962359 #929623 #239661
split-complementary
#272396 #966123 #599623
monochromatic
#0D0C33 #1A1764 #272396 #342FC8 #5F5BD9

Accessibility & contrast

On white

11.88
#272396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#272396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272396
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272396#FFFFFF#000000##FFFFFF
##2723961.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #272396;
/* rgb */ color: rgb(39, 35, 150);
/* oklch */ color: oklch(35.5% 0.179 273.9);
Tailwind
colors: {
  custom: {
    50: '#7460b6',
    500: '#272396',
    950: '#000000',
  },
}
SCSS
$custom: #272396;
$custom-light: #7460b6;
$custom-dark: #000000;
JSON
{
  "hex": "#272396",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 242.087,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35458,
    "c": 0.17851,
    "h": 273.9
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#272396
secondary
#BABD58
accent
#E543E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272396

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

Preview Lab → · Contrast checker → · Palette generator →

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