#272AA2#272AA2

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

Color values

HEX#272AA2
RGBrgb(39, 42, 162)
HSLhsl(239, 61%, 39%)
HSVhsv(239, 76%, 64%)
CMYKcmyk(75.9%, 74.1%, 0%, 36.5%)
CIE-LABlab(25.85, 40.41, -64.40)
CIE-LCHlch(25.85, 76.03, 302.11°)
OKLaboklab(37.78% 0.0066 -0.1864)
OKLCHoklch(37.78% 0.187 272)
XYZxyz(8.1841, 4.6950, 34.6503)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272AA2 #A29F27
analogous
#2767A2 #272AA2 #6227A2
triadic
#272AA2 #A2272A #2AA227
tetradic
#272AA2 #A22767 #A29F27 #27A262
square
#272AA2 #A22767 #A29F27 #27A262
split-complementary
#272AA2 #A26227 #67A227
monochromatic
#0F103F #1B1D71 #272AA2 #373BCF #696BDB

Accessibility & contrast

On white

10.83
#272AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#272AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272AA2
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272AA2#FFFFFF#000000##FFFFFF
##272AA21.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #272aa2;
/* rgb */ color: rgb(39, 42, 162);
/* oklch */ color: oklch(37.8% 0.186 272.0);
Tailwind
colors: {
  custom: {
    50: '#7665bf',
    500: '#272aa2',
    950: '#000000',
  },
}
SCSS
$custom: #272aa2;
$custom-light: #7665bf;
$custom-dark: #000000;
JSON
{
  "hex": "#272aa2",
  "rgb": {
    "r": 39,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 238.537,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.1865,
    "h": 272
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #272AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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