#272C98#272C98

#272C98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.172 H 272.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#272C98
RGBrgb(39, 44, 152)
HSLhsl(237, 59%, 37%)
HSVhsv(237, 74%, 60%)
CMYKcmyk(74.3%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.26, 35.70, -59.27)
CIE-LCHlch(25.26, 69.19, 301.06°)
OKLaboklab(37.05% 0.0071 -0.1714)
OKLCHoklch(37.05% 0.172 272.4)
XYZxyz(7.4030, 4.4989, 30.1779)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272C98 #989327
analogous
#276598 #272C98 #5A2798
triadic
#272C98 #98272C #2C9827
tetradic
#272C98 #982765 #989327 #27985A
square
#272C98 #982765 #989327 #27985A
split-complementary
#272C98 #985A27 #659827
monochromatic
#0E1037 #1B1E67 #272C98 #333AC9 #6368D7

Accessibility & contrast

On white

11.05
#272C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#272C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272C98
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272C98#FFFFFF#000000##FFFFFF
##272C981.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #272c98;
/* rgb */ color: rgb(39, 44, 152);
/* oklch */ color: oklch(37.0% 0.172 272.4);
Tailwind
colors: {
  custom: {
    50: '#7366b7',
    500: '#272c98',
    950: '#000000',
  },
}
SCSS
$custom: #272c98;
$custom-light: #7366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272c98",
  "rgb": {
    "r": 39,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 237.345,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37047,
    "c": 0.17159,
    "h": 272.4
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#272C98
secondary
#BCB85E
accent
#DB45E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #272C98

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

Preview Lab → · Contrast checker → · Palette generator →

#272C98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva