#272898#272898

#272898 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.176 H 273.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#272898
RGBrgb(39, 40, 152)
HSLhsl(239, 59%, 37%)
HSVhsv(239, 74%, 60%)
CMYKcmyk(74.3%, 73.7%, 0%, 40.4%)
CIE-LABlab(24.37, 38.15, -60.73)
CIE-LCHlch(24.37, 71.71, 302.14°)
OKLaboklab(36.41% 0.0093 -0.1757)
OKLCHoklch(36.41% 0.176 273)
XYZxyz(7.2611, 4.2152, 30.1306)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272898 #989727
analogous
#276198 #272898 #5F2798
triadic
#272898 #982728 #289827
tetradic
#272898 #982761 #989727 #27985F
square
#272898 #982761 #989727 #27985F
split-complementary
#272898 #985F27 #619827
monochromatic
#0E0E37 #1B1B67 #272898 #3335C9 #6364D7

Accessibility & contrast

On white

11.39
#272898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272898
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272898#FFFFFF#000000##FFFFFF
##2728981.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #272898;
/* rgb */ color: rgb(39, 40, 152);
/* oklch */ color: oklch(36.4% 0.176 273.0);
Tailwind
colors: {
  custom: {
    50: '#7463b7',
    500: '#272898',
    950: '#000000',
  },
}
SCSS
$custom: #272898;
$custom-light: #7463b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272898",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 239.469,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36412,
    "c": 0.17593,
    "h": 273
  },
  "luminance": 0.04216
}

Semantic roles & 50–950 ramp

primary
#272898
secondary
#BCBC5E
accent
#E145E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #272898

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

Preview Lab → · Contrast checker → · Palette generator →

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