#272FAF#272FAF

#272FAF is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.198 H 270.7°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#272FAF
RGBrgb(39, 47, 175)
HSLhsl(236, 64%, 42%)
HSVhsv(236, 78%, 69%)
CMYKcmyk(77.7%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.27, 41.94, -68.23)
CIE-LCHlch(28.27, 80.09, 301.58°)
OKLaboklab(39.92% 0.0023 -0.1976)
OKLCHoklch(39.92% 0.198 270.7)
XYZxyz(9.5884, 5.5585, 41.1167)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272FAF #AFA727
analogous
#2773AF #272FAF #6327AF
triadic
#272FAF #AF272F #2FAF27
tetradic
#272FAF #AF2773 #AFA727 #27AF63
square
#272FAF #AF2773 #AFA727 #27AF63
split-complementary
#272FAF #AF6327 #73AF27
monochromatic
#11144B #1C227D #272FAF #3F48D4 #7178DF

Accessibility & contrast

On white

9.94
#272FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#272FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272FAF
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272FAF#FFFFFF#000000##FFFFFF
##272FAF1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #272faf;
/* rgb */ color: rgb(39, 47, 175);
/* oklch */ color: oklch(39.9% 0.198 270.7);
Tailwind
colors: {
  custom: {
    50: '#7969c8',
    500: '#272faf',
    950: '#000000',
  },
}
SCSS
$custom: #272faf;
$custom-light: #7969c8;
$custom-dark: #000000;
JSON
{
  "hex": "#272faf",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 236.471,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39915,
    "c": 0.19759,
    "h": 270.7
  },
  "luminance": 0.0556
}

Semantic roles & 50–950 ramp

primary
#272FAF
secondary
#C6C16B
accent
#DD41E7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #272FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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