#2C39A4#2C39A4

#2C39A4 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.171 H 271.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2C39A4
RGBrgb(44, 57, 164)
HSLhsl(234, 58%, 41%)
HSVhsv(234, 73%, 64%)
CMYKcmyk(73.2%, 65.2%, 0%, 35.7%)
CIE-LABlab(29.77, 32.31, -59.15)
CIE-LCHlch(29.77, 67.40, 298.64°)
OKLaboklab(40.75% 0.0033 -0.1709)
OKLCHoklch(40.75% 0.171 271.1)
XYZxyz(9.2004, 6.1411, 35.8152)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C39A4 #A4972C
analogous
#2C75A4 #2C39A4 #5B2CA4
triadic
#2C39A4 #A42C39 #39A42C
tetradic
#2C39A4 #A42C75 #A4972C #2CA45B
square
#2C39A4 #A42C75 #A4972C #2CA45B
split-complementary
#2C39A4 #A45B2C #75A42C
monochromatic
#121743 #1F2874 #2C39A4 #4150CC #717DD9

Accessibility & contrast

On white

9.42
#2C39A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2C39A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C39A4
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C39A4#FFFFFF#000000##FFFFFF
##2C39A41.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c39a4;
/* rgb */ color: rgb(44, 57, 164);
/* oklch */ color: oklch(40.7% 0.171 271.1);
Tailwind
colors: {
  custom: {
    50: '#776fc0',
    500: '#2c39a4',
    950: '#000000',
  },
}
SCSS
$custom: #2c39a4;
$custom-light: #776fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c39a4",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 164
  },
  "hsl": {
    "h": 233.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40747,
    "c": 0.17098,
    "h": 271.1
  },
  "luminance": 0.06142
}

Semantic roles & 50–950 ramp

primary
#2C39A4
secondary
#C0B76B
accent
#D047E1
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2C39A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2C39A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva