#272D98#272D98

#272D98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.170 H 272.2°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#272D98
RGBrgb(39, 45, 152)
HSLhsl(237, 59%, 37%)
HSVhsv(237, 74%, 60%)
CMYKcmyk(74.3%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.49, 35.07, -58.89)
CIE-LCHlch(25.49, 68.54, 300.78°)
OKLaboklab(37.21% 0.0065 -0.1703)
OKLCHoklch(37.21% 0.17 272.2)
XYZxyz(7.4407, 4.5743, 30.1905)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272D98 #989227
analogous
#276698 #272D98 #592798
triadic
#272D98 #98272D #2D9827
tetradic
#272D98 #982766 #989227 #279859
square
#272D98 #982766 #989227 #279859
split-complementary
#272D98 #985927 #669827
monochromatic
#0E1037 #1B1F67 #272D98 #333BC9 #6369D7

Accessibility & contrast

On white

10.97
#272D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#272D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272D98
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272D98#FFFFFF#000000##FFFFFF
##272D981.0010.971.9210.97
#FFFFFF10.971.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #272d98;
/* rgb */ color: rgb(39, 45, 152);
/* oklch */ color: oklch(37.2% 0.170 272.2);
Tailwind
colors: {
  custom: {
    50: '#7366b7',
    500: '#272d98',
    950: '#000000',
  },
}
SCSS
$custom: #272d98;
$custom-light: #7366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272d98",
  "rgb": {
    "r": 39,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 236.814,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37213,
    "c": 0.17046,
    "h": 272.2
  },
  "luminance": 0.04575
}

Semantic roles & 50–950 ramp

primary
#272D98
secondary
#BCB75E
accent
#DA45E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #272D98

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

Preview Lab → · Contrast checker → · Palette generator →

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