#272397#272397

#272397 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.180 H 273.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#272397
RGBrgb(39, 35, 151)
HSLhsl(242, 62%, 36%)
HSVhsv(242, 77%, 59%)
CMYKcmyk(74.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.23, 40.72, -62.00)
CIE-LCHlch(23.23, 74.17, 303.30°)
OKLaboklab(35.57% 0.012 -0.1794)
OKLCHoklch(35.57% 0.18 273.8)
XYZxyz(7.0218, 3.8671, 29.6485)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272397 #939723
analogous
#235997 #272397 #612397
triadic
#272397 #972723 #239727
tetradic
#272397 #972359 #939723 #239761
square
#272397 #972359 #939723 #239761
split-complementary
#272397 #976123 #599723
monochromatic
#0D0C34 #1A1765 #272397 #342FC9 #605BD9

Accessibility & contrast

On white

11.84
#272397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272397
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272397#FFFFFF#000000##FFFFFF
##2723971.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #272397;
/* rgb */ color: rgb(39, 35, 151);
/* oklch */ color: oklch(35.6% 0.180 273.8);
Tailwind
colors: {
  custom: {
    50: '#7460b7',
    500: '#272397',
    950: '#000000',
  },
}
SCSS
$custom: #272397;
$custom-light: #7460b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272397",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 242.069,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35568,
    "c": 0.17976,
    "h": 273.8
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#272397
secondary
#BABE58
accent
#E542E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272397

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

Preview Lab → · Contrast checker → · Palette generator →

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