#2731C4#2731C4

#2731C4 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.5% C 0.221 H 269.6°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2731C4
RGBrgb(39, 49, 196)
HSLhsl(236, 67%, 46%)
HSVhsv(236, 80%, 77%)
CMYKcmyk(80.1%, 75%, 0%, 23.1%)
CIE-LABlab(30.91, 47.92, -76.32)
CIE-LCHlch(30.91, 90.11, 302.12°)
OKLaboklab(42.45% -0.0016 -0.2211)
OKLCHoklch(42.45% 0.221 269.6)
XYZxyz(11.8954, 6.6121, 52.8632)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2731C4 #C4BA27
analogous
#277FC4 #2731C4 #6B27C4
triadic
#2731C4 #C42731 #31C427
tetradic
#2731C4 #C4277F #C4BA27 #27C46B
square
#2731C4 #C4277F #C4BA27 #27C46B
split-complementary
#2731C4 #C46B27 #7FC427
monochromatic
#13175E #1D2491 #2731C4 #4D56DC #8086E6

Accessibility & contrast

On white

9.04
#2731C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2731C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2731C4
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2731C4#FFFFFF#000000##FFFFFF
##2731C41.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C8
Deuteranopia (green-blind)
#0041C1
Tritanopia (blue-blind)
#005D78
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2731c4;
/* rgb */ color: rgb(39, 49, 196);
/* oklch */ color: oklch(42.5% 0.221 269.6);
Tailwind
colors: {
  custom: {
    50: '#7e6bd7',
    500: '#2731c4',
    950: '#000000',
  },
}
SCSS
$custom: #2731c4;
$custom-light: #7e6bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2731c4",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 236.178,
    "s": 66.809,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42452,
    "c": 0.2211,
    "h": 269.6
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#2731C4
secondary
#CEC979
accent
#DF3EEA
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2731C4

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

Preview Lab → · Contrast checker → · Palette generator →

#2731C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva