#272E98#272E98

#272E98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.169 H 272.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#272E98
RGBrgb(39, 46, 152)
HSLhsl(236, 59%, 37%)
HSVhsv(236, 74%, 60%)
CMYKcmyk(74.3%, 69.7%, 0%, 40.4%)
CIE-LABlab(25.72, 34.44, -58.51)
CIE-LCHlch(25.72, 67.89, 300.48°)
OKLaboklab(37.38% 0.0059 -0.1692)
OKLCHoklch(37.38% 0.169 272)
XYZxyz(7.4793, 4.6516, 30.2033)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272E98 #989127
analogous
#276798 #272E98 #582798
triadic
#272E98 #98272E #2E9827
tetradic
#272E98 #982767 #989127 #279858
square
#272E98 #982767 #989127 #279858
split-complementary
#272E98 #985827 #679827
monochromatic
#0E1137 #1B1F67 #272E98 #333DC9 #636AD7

Accessibility & contrast

On white

10.88
#272E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#272E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272E98
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272E98#FFFFFF#000000##FFFFFF
##272E981.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #272e98;
/* rgb */ color: rgb(39, 46, 152);
/* oklch */ color: oklch(37.4% 0.169 272.0);
Tailwind
colors: {
  custom: {
    50: '#7367b7',
    500: '#272e98',
    950: '#000000',
  },
}
SCSS
$custom: #272e98;
$custom-light: #7367b7;
$custom-dark: #000000;
JSON
{
  "hex": "#272e98",
  "rgb": {
    "r": 39,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 236.283,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3738,
    "c": 0.16932,
    "h": 272
  },
  "luminance": 0.04652
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #272E98

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

Preview Lab → · Contrast checker → · Palette generator →

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