#272F98#272F98

#272F98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.168 H 271.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#272F98
RGBrgb(39, 47, 152)
HSLhsl(236, 59%, 37%)
HSVhsv(236, 74%, 60%)
CMYKcmyk(74.3%, 69.1%, 0%, 40.4%)
CIE-LABlab(25.95, 33.81, -58.12)
CIE-LCHlch(25.95, 67.24, 300.18°)
OKLaboklab(37.55% 0.0053 -0.1681)
OKLCHoklch(37.55% 0.168 271.8)
XYZxyz(7.5188, 4.7306, 30.2165)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F98 #989027
analogous
#276898 #272F98 #572798
triadic
#272F98 #98272F #2F9827
tetradic
#272F98 #982768 #989027 #279857
square
#272F98 #982768 #989027 #279857
split-complementary
#272F98 #985727 #689827
monochromatic
#0E1137 #1B2067 #272F98 #333EC9 #636BD7

Accessibility & contrast

On white

10.79
#272F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#272F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F98
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F98#FFFFFF#000000##FFFFFF
##272F981.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #272f98;
/* rgb */ color: rgb(39, 47, 152);
/* oklch */ color: oklch(37.5% 0.168 271.8);
Tailwind
colors: {
  custom: {
    50: '#7368b7',
    500: '#272f98',
    950: '#000000',
  },
}
SCSS
$custom: #272f98;
$custom-light: #7368b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272f98",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 235.752,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3755,
    "c": 0.16817,
    "h": 271.8
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#272F98
secondary
#BCB65E
accent
#D745E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #272F98

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

Preview Lab → · Contrast checker → · Palette generator →

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