#272AA3#272AA3

#272AA3 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.188 H 272.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#272AA3
RGBrgb(39, 42, 163)
HSLhsl(239, 61%, 40%)
HSVhsv(239, 76%, 64%)
CMYKcmyk(76.1%, 74.2%, 0%, 36.1%)
CIE-LABlab(25.95, 40.76, -64.83)
CIE-LCHlch(25.95, 76.57, 302.16°)
OKLaboklab(37.89% 0.0064 -0.1876)
OKLCHoklch(37.89% 0.188 272)
XYZxyz(8.2733, 4.7307, 35.1203)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272AA3 #A3A027
analogous
#2768A3 #272AA3 #6227A3
triadic
#272AA3 #A3272A #2AA327
tetradic
#272AA3 #A32768 #A3A027 #27A362
square
#272AA3 #A32768 #A3A027 #27A362
split-complementary
#272AA3 #A36227 #68A327
monochromatic
#0F1140 #1B1D72 #272AA3 #383CCF #696CDB

Accessibility & contrast

On white

10.79
#272AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#272AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272AA3
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272AA3#FFFFFF#000000##FFFFFF
##272AA31.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#0037A1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #272aa3;
/* rgb */ color: rgb(39, 42, 163);
/* oklch */ color: oklch(37.9% 0.188 272.0);
Tailwind
colors: {
  custom: {
    50: '#7665bf',
    500: '#272aa3',
    950: '#000000',
  },
}
SCSS
$custom: #272aa3;
$custom-light: #7665bf;
$custom-dark: #000000;
JSON
{
  "hex": "#272aa3",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 238.548,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37886,
    "c": 0.18775,
    "h": 272
  },
  "luminance": 0.04732
}

Semantic roles & 50–950 ramp

primary
#272AA3
secondary
#C1BF64
accent
#E143E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #272AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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