#2C2889#2C2889

#2C2889 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.155 H 276.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2C2889
RGBrgb(44, 40, 137)
HSLhsl(242, 55%, 35%)
HSVhsv(242, 71%, 54%)
CMYKcmyk(67.9%, 70.8%, 0%, 46.3%)
CIE-LABlab(23.20, 33.51, -53.35)
CIE-LCHlch(23.20, 63.01, 302.13°)
OKLaboklab(35.21% 0.0181 -0.154)
OKLCHoklch(35.21% 0.155 276.7)
XYZxyz(6.3114, 3.8587, 24.0743)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2889 #858928
analogous
#285589 #2C2889 #5C2889
triadic
#2C2889 #892C28 #28892C
tetradic
#2C2889 #892855 #858928 #28895C
square
#2C2889 #892855 #858928 #28895C
split-complementary
#2C2889 #895C28 #558928
monochromatic
#0E0C2A #1D1A5A #2C2889 #3B36B8 #615CCF

Accessibility & contrast

On white

11.85
#2C2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2889
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2889#FFFFFF#000000##FFFFFF
##2C28891.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2889;
/* rgb */ color: rgb(44, 40, 137);
/* oklch */ color: oklch(35.2% 0.155 276.7);
Tailwind
colors: {
  custom: {
    50: '#7263ac',
    500: '#2c2889',
    950: '#000000',
  },
}
SCSS
$custom: #2c2889;
$custom-light: #7263ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2889",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 242.474,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35205,
    "c": 0.15508,
    "h": 276.7
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#2C2889
secondary
#B1B558
accent
#DE4AD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2889

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

Preview Lab → · Contrast checker → · Palette generator →

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