#272F7B#272F7B

#272F7B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.128 H 273.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#272F7B
RGBrgb(39, 47, 123)
HSLhsl(234, 52%, 32%)
HSVhsv(234, 68%, 48%)
CMYKcmyk(68.3%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.32, 23.07, -44.37)
CIE-LCHlch(23.32, 50.00, 297.47°)
OKLaboklab(34.81% 0.0071 -0.1278)
OKLCHoklch(34.81% 0.128 273.2)
XYZxyz(5.4272, 3.8939, 19.2007)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F7B #7B7327
analogous
#27597B #272F7B #49277B
triadic
#272F7B #7B272F #2F7B27
tetradic
#272F7B #7B2759 #7B7327 #277B49
square
#272F7B #7B2759 #7B7327 #277B49
split-complementary
#272F7B #7B4927 #597B27
monochromatic
#0A0B1E #181D4D #272F7B #3641A9 #545FC9

Accessibility & contrast

On white

11.81
#272F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#272F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F7B
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F7B#FFFFFF#000000##FFFFFF
##272F7B1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #272f7b;
/* rgb */ color: rgb(39, 47, 123);
/* oklch */ color: oklch(34.8% 0.128 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c67a2',
    500: '#272f7b',
    950: '#000000',
  },
}
SCSS
$custom: #272f7b;
$custom-light: #6c67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#272f7b",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 234.286,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34807,
    "c": 0.12798,
    "h": 273.2
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#272F7B
secondary
#ADA451
accent
#CE4CDB
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #272F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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