#2C39A2#2C39A2

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

Color values

HEX#2C39A2
RGBrgb(44, 57, 162)
HSLhsl(233, 57%, 40%)
HSVhsv(233, 73%, 64%)
CMYKcmyk(72.8%, 64.8%, 0%, 36.5%)
CIE-LABlab(29.59, 31.58, -58.24)
CIE-LCHlch(29.59, 66.25, 298.47°)
OKLaboklab(40.56% 0.0034 -0.1683)
OKLCHoklch(40.56% 0.168 271.1)
XYZxyz(9.0212, 6.0694, 34.8715)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C39A2 #A2952C
analogous
#2C74A2 #2C39A2 #5A2CA2
triadic
#2C39A2 #A22C39 #39A22C
tetradic
#2C39A2 #A22C74 #A2952C #2CA25A
square
#2C39A2 #A22C74 #A2952C #2CA25A
split-complementary
#2C39A2 #A25A2C #74A22C
monochromatic
#121742 #1F2872 #2C39A2 #404FCB #707CD8

Accessibility & contrast

On white

9.49
#2C39A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2C39A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C39A2
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C39A2#FFFFFF#000000##FFFFFF
##2C39A21.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c39a2;
/* rgb */ color: rgb(44, 57, 162);
/* oklch */ color: oklch(40.6% 0.168 271.1);
Tailwind
colors: {
  custom: {
    50: '#766fbe',
    500: '#2c39a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c39a2;
$custom-light: #766fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2c39a2",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 233.39,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40561,
    "c": 0.1683,
    "h": 271.1
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C39A2

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

Preview Lab → · Contrast checker → · Palette generator →

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