#272498#272498

#272498 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.180 H 273.6°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#272498
RGBrgb(39, 36, 152)
HSLhsl(242, 62%, 37%)
HSVhsv(242, 76%, 60%)
CMYKcmyk(74.3%, 76.3%, 0%, 40.4%)
CIE-LABlab(23.54, 40.49, -62.10)
CIE-LCHlch(23.54, 74.13, 303.10°)
OKLaboklab(35.82% 0.0113 -0.1797)
OKLCHoklch(35.82% 0.18 273.6)
XYZxyz(7.1332, 3.9594, 30.0880)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272498 #959824
analogous
#245B98 #272498 #612498
triadic
#272498 #982724 #249827
tetradic
#272498 #98245B #959824 #249861
square
#272498 #98245B #959824 #249861
split-complementary
#272498 #986124 #5B9824
monochromatic
#0E0D35 #1A1867 #272498 #3430C9 #615ED9

Accessibility & contrast

On white

11.72
#272498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#272498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272498
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272498#FFFFFF#000000##FFFFFF
##2724981.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272498;
/* rgb */ color: rgb(39, 36, 152);
/* oklch */ color: oklch(35.8% 0.180 273.6);
Tailwind
colors: {
  custom: {
    50: '#7461b8',
    500: '#272498',
    950: '#000000',
  },
}
SCSS
$custom: #272498;
$custom-light: #7461b8;
$custom-dark: #000000;
JSON
{
  "hex": "#272498",
  "rgb": {
    "r": 39,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 241.552,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35819,
    "c": 0.18002,
    "h": 273.6
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#272498
secondary
#BBBE5A
accent
#E543E1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #272498

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

Preview Lab → · Contrast checker → · Palette generator →

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