#272A98#272A98

#272A98 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.174 H 272.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#272A98
RGBrgb(39, 42, 152)
HSLhsl(238, 59%, 37%)
HSVhsv(238, 74%, 60%)
CMYKcmyk(74.3%, 72.4%, 0%, 40.4%)
CIE-LABlab(24.81, 36.94, -60.01)
CIE-LCHlch(24.81, 70.46, 301.61°)
OKLaboklab(36.72% 0.0082 -0.1736)
OKLCHoklch(36.72% 0.174 272.7)
XYZxyz(7.3303, 4.3535, 30.1537)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272A98 #989527
analogous
#276398 #272A98 #5C2798
triadic
#272A98 #98272A #2A9827
tetradic
#272A98 #982763 #989527 #27985C
square
#272A98 #982763 #989527 #27985C
split-complementary
#272A98 #985C27 #639827
monochromatic
#0E0F37 #1B1D67 #272A98 #3337C9 #6366D7

Accessibility & contrast

On white

11.23
#272A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#272A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272A98
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272A98#FFFFFF#000000##FFFFFF
##272A981.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #272a98;
/* rgb */ color: rgb(39, 42, 152);
/* oklch */ color: oklch(36.7% 0.174 272.7);
Tailwind
colors: {
  custom: {
    50: '#7464b7',
    500: '#272a98',
    950: '#000000',
  },
}
SCSS
$custom: #272a98;
$custom-light: #7464b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272a98",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 238.407,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36724,
    "c": 0.17379,
    "h": 272.7
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#272A98
secondary
#BCBA5E
accent
#DE45E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #272A98

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

Preview Lab → · Contrast checker → · Palette generator →

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