#2C298A#2C298A

#2C298A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.155 H 276.3°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2C298A
RGBrgb(44, 41, 138)
HSLhsl(242, 54%, 35%)
HSVhsv(242, 70%, 54%)
CMYKcmyk(68.1%, 70.3%, 0%, 45.9%)
CIE-LABlab(23.52, 33.24, -53.44)
CIE-LCHlch(23.52, 62.93, 301.88°)
OKLaboklab(35.47% 0.0172 -0.1543)
OKLCHoklch(35.47% 0.155 276.3)
XYZxyz(6.4176, 3.9558, 24.4652)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C298A #878A29
analogous
#29568A #2C298A #5D298A
triadic
#2C298A #8A2C29 #298A2C
tetradic
#2C298A #8A2956 #878A29 #298A5D
square
#2C298A #8A2956 #878A29 #298A5D
split-complementary
#2C298A #8A5D29 #568A29
monochromatic
#0E0D2C #1D1B5B #2C298A #3B37B9 #625ECF

Accessibility & contrast

On white

11.72
#2C298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2C298A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C298A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C298A#FFFFFF#000000##FFFFFF
##2C298A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c298a;
/* rgb */ color: rgb(44, 41, 138);
/* oklch */ color: oklch(35.5% 0.155 276.3);
Tailwind
colors: {
  custom: {
    50: '#7263ad',
    500: '#2c298a',
    950: '#000000',
  },
}
SCSS
$custom: #2c298a;
$custom-light: #7263ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c298a",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 241.856,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35469,
    "c": 0.15524,
    "h": 276.3
  },
  "luminance": 0.03956
}

Semantic roles & 50–950 ramp

primary
#2C298A
secondary
#B2B55A
accent
#DE4AD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2C298A

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

Preview Lab → · Contrast checker → · Palette generator →

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