#2C2882#2C2882

#2C2882 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.146 H 277.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2C2882
RGBrgb(44, 40, 130)
HSLhsl(243, 53%, 33%)
HSVhsv(243, 69%, 51%)
CMYKcmyk(66.2%, 69.2%, 0%, 49%)
CIE-LABlab(22.53, 31.06, -50.06)
CIE-LCHlch(22.53, 58.92, 301.82°)
OKLaboklab(34.52% 0.019 -0.1444)
OKLCHoklch(34.52% 0.146 277.5)
XYZxyz(5.8255, 3.6643, 21.5151)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2882 #7E8228
analogous
#285182 #2C2882 #592882
triadic
#2C2882 #822C28 #28822C
tetradic
#2C2882 #822851 #7E8228 #288259
square
#2C2882 #822851 #7E8228 #288259
split-complementary
#2C2882 #825928 #518228
monochromatic
#0C0B24 #1C1A53 #2C2882 #3C36B1 #5E59CC

Accessibility & contrast

On white

12.12
#2C2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2882
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2882#FFFFFF#000000##FFFFFF
##2C28821.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2882;
/* rgb */ color: rgb(44, 40, 130);
/* oklch */ color: oklch(34.5% 0.146 277.5);
Tailwind
colors: {
  custom: {
    50: '#7162a7',
    500: '#2c2882',
    950: '#000000',
  },
}
SCSS
$custom: #2c2882;
$custom-light: #7162a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2882",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 242.667,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34517,
    "c": 0.14564,
    "h": 277.5
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#2C2882
secondary
#ADB155
accent
#DC4BD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #2C2882

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

Preview Lab → · Contrast checker → · Palette generator →

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