#272F8F#272F8F

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

Color values

HEX#272F8F
RGBrgb(39, 47, 143)
HSLhsl(235, 57%, 36%)
HSVhsv(235, 73%, 56%)
CMYKcmyk(72.7%, 67.1%, 0%, 43.9%)
CIE-LABlab(25.10, 30.52, -53.98)
CIE-LCHlch(25.10, 62.01, 299.48°)
OKLaboklab(36.67% 0.0061 -0.156)
OKLCHoklch(36.67% 0.156 272.3)
XYZxyz(6.8095, 4.4469, 26.4807)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F8F #8F8727
analogous
#27638F #272F8F #53278F
triadic
#272F8F #8F272F #2F8F27
tetradic
#272F8F #8F2763 #8F8727 #278F53
square
#272F8F #8F2763 #8F8727 #278F53
split-complementary
#272F8F #8F5327 #638F27
monochromatic
#0D0F2F #1A1F5F #272F8F #343FBF #5D66D3

Accessibility & contrast

On white

11.11
#272F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#272F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F8F
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F8F#FFFFFF#000000##FFFFFF
##272F8F1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #272f8f;
/* rgb */ color: rgb(39, 47, 143);
/* oklch */ color: oklch(36.7% 0.156 272.3);
Tailwind
colors: {
  custom: {
    50: '#7167b1',
    500: '#272f8f',
    950: '#000000',
  },
}
SCSS
$custom: #272f8f;
$custom-light: #7167b1;
$custom-dark: #000000;
JSON
{
  "hex": "#272f8f",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 235.385,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36666,
    "c": 0.15611,
    "h": 272.3
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#272F8F
secondary
#B8B15A
accent
#D547E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #272F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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