#272F8B#272F8B

#272F8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.151 H 272.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#272F8B
RGBrgb(39, 47, 139)
HSLhsl(235, 56%, 35%)
HSVhsv(235, 72%, 55%)
CMYKcmyk(71.9%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.73, 29.05, -52.11)
CIE-LCHlch(24.73, 59.66, 299.14°)
OKLaboklab(36.28% 0.0064 -0.1505)
OKLCHoklch(36.28% 0.151 272.5)
XYZxyz(6.5118, 4.3278, 24.9133)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F8B #8B8327
analogous
#27618B #272F8B #51278B
triadic
#272F8B #8B272F #2F8B27
tetradic
#272F8B #8B2761 #8B8327 #278B51
square
#272F8B #8B2761 #8B8327 #278B51
split-complementary
#272F8B #8B5127 #618B27
monochromatic
#0C0F2B #1A1F5B #272F8B #343FBB #5B65D1

Accessibility & contrast

On white

11.26
#272F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #272F8B
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F8B#FFFFFF#000000##FFFFFF
##272F8B1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #272f8b;
/* rgb */ color: rgb(39, 47, 139);
/* oklch */ color: oklch(36.3% 0.151 272.5);
Tailwind
colors: {
  custom: {
    50: '#7067ae',
    500: '#272f8b',
    950: '#000000',
  },
}
SCSS
$custom: #272f8b;
$custom-light: #7067ae;
$custom-dark: #000000;
JSON
{
  "hex": "#272f8b",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 235.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36282,
    "c": 0.15064,
    "h": 272.5
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#272F8B
secondary
#B6AF58
accent
#D348DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #272F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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