#2C2986#2C2986

#2C2986 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.150 H 276.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2C2986
RGBrgb(44, 41, 134)
HSLhsl(242, 53%, 34%)
HSVhsv(242, 69%, 53%)
CMYKcmyk(67.2%, 69.4%, 0%, 47.5%)
CIE-LABlab(23.14, 31.83, -51.57)
CIE-LCHlch(23.14, 60.60, 301.69°)
OKLaboklab(35.08% 0.0177 -0.1488)
OKLCHoklch(35.08% 0.15 276.8)
XYZxyz(6.1333, 3.8421, 22.9680)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2986 #838629
analogous
#295586 #2C2986 #5A2986
triadic
#2C2986 #862C29 #29862C
tetradic
#2C2986 #862955 #838629 #29865A
square
#2C2986 #862955 #838629 #29865A
split-complementary
#2C2986 #865A29 #558629
monochromatic
#0D0C28 #1D1B57 #2C2986 #3B37B5 #605CCD

Accessibility & contrast

On white

11.87
#2C2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2986
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2986#FFFFFF#000000##FFFFFF
##2C29861.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2986;
/* rgb */ color: rgb(44, 41, 134);
/* oklch */ color: oklch(35.1% 0.150 276.8);
Tailwind
colors: {
  custom: {
    50: '#7163aa',
    500: '#2c2986',
    950: '#000000',
  },
}
SCSS
$custom: #2c2986;
$custom-light: #7163aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2986",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 241.935,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35076,
    "c": 0.14986,
    "h": 276.8
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#2C2986
secondary
#B0B358
accent
#DD4BD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2986

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

Preview Lab → · Contrast checker → · Palette generator →

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