#272BA5#272BA5

#272BA5 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.189 H 271.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#272BA5
RGBrgb(39, 43, 165)
HSLhsl(238, 62%, 40%)
HSVhsv(238, 76%, 65%)
CMYKcmyk(76.4%, 73.9%, 0%, 35.3%)
CIE-LABlab(26.38, 40.86, -65.34)
CIE-LCHlch(26.38, 77.06, 302.02°)
OKLaboklab(38.25% 0.0056 -0.1892)
OKLCHoklch(38.25% 0.189 271.7)
XYZxyz(8.4898, 4.8748, 36.0835)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272BA5 #A5A127
analogous
#276AA5 #272BA5 #6227A5
triadic
#272BA5 #A5272B #2BA527
tetradic
#272BA5 #A5276A #A5A127 #27A562
square
#272BA5 #A5276A #A5A127 #27A562
split-complementary
#272BA5 #A56227 #6AA527
monochromatic
#101142 #1B1E74 #272BA5 #393ED0 #6A6EDC

Accessibility & contrast

On white

10.63
#272BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#272BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272BA5
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272BA5#FFFFFF#000000##FFFFFF
##272BA51.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #272ba5;
/* rgb */ color: rgb(39, 43, 165);
/* oklch */ color: oklch(38.3% 0.189 271.7);
Tailwind
colors: {
  custom: {
    50: '#7766c1',
    500: '#272ba5',
    950: '#000000',
  },
}
SCSS
$custom: #272ba5;
$custom-light: #7766c1;
$custom-dark: #000000;
JSON
{
  "hex": "#272ba5",
  "rgb": {
    "r": 39,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 238.095,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.3825,
    "c": 0.18923,
    "h": 271.7
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#272BA5
secondary
#C2BF66
accent
#E043E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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