#272BA4#272BA4

#272BA4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.188 H 271.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#272BA4
RGBrgb(39, 43, 164)
HSLhsl(238, 62%, 40%)
HSVhsv(238, 76%, 64%)
CMYKcmyk(76.2%, 73.8%, 0%, 35.7%)
CIE-LABlab(26.27, 40.51, -64.91)
CIE-LCHlch(26.27, 76.52, 301.97°)
OKLaboklab(38.14% 0.0058 -0.1879)
OKLCHoklch(38.14% 0.188 271.8)
XYZxyz(8.3992, 4.8385, 35.6060)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272BA4 #A4A027
analogous
#276AA4 #272BA4 #6227A4
triadic
#272BA4 #A4272B #2BA427
tetradic
#272BA4 #A4276A #A4A027 #27A462
square
#272BA4 #A4276A #A4A027 #27A462
split-complementary
#272BA4 #A46227 #6AA427
monochromatic
#0F1141 #1B1E73 #272BA4 #383DD0 #6A6EDC

Accessibility & contrast

On white

10.67
#272BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#272BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272BA4
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272BA4#FFFFFF#000000##FFFFFF
##272BA41.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #272ba4;
/* rgb */ color: rgb(39, 43, 164);
/* oklch */ color: oklch(38.1% 0.188 271.8);
Tailwind
colors: {
  custom: {
    50: '#7666c0',
    500: '#272ba4',
    950: '#000000',
  },
}
SCSS
$custom: #272ba4;
$custom-light: #7666c0;
$custom-dark: #000000;
JSON
{
  "hex": "#272ba4",
  "rgb": {
    "r": 39,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 238.08,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38143,
    "c": 0.18798,
    "h": 271.8
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #272BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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