#2C298D#2C298D

#2C298D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.159 H 276.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2C298D
RGBrgb(44, 41, 141)
HSLhsl(242, 55%, 36%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(68.8%, 70.9%, 0%, 44.7%)
CIE-LABlab(23.82, 34.28, -54.83)
CIE-LCHlch(23.82, 64.67, 302.02°)
OKLaboklab(35.77% 0.0167 -0.1584)
OKLCHoklch(35.77% 0.159 276)
XYZxyz(6.6378, 4.0438, 25.6249)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C298D #8A8D29
analogous
#29588D #2C298D #5E298D
triadic
#2C298D #8D2C29 #298D2C
tetradic
#2C298D #8D2958 #8A8D29 #298D5E
square
#2C298D #8D2958 #8A8D29 #298D5E
split-complementary
#2C298D #8D5E29 #588D29
monochromatic
#0E0D2E #1D1B5E #2C298D #3B37BC #6360D1

Accessibility & contrast

On white

11.61
#2C298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2C298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C298D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C298D#FFFFFF#000000##FFFFFF
##2C298D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c298d;
/* rgb */ color: rgb(44, 41, 141);
/* oklch */ color: oklch(35.8% 0.159 276.0);
Tailwind
colors: {
  custom: {
    50: '#7363af',
    500: '#2c298d',
    950: '#000000',
  },
}
SCSS
$custom: #2c298d;
$custom-light: #7363af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c298d",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 241.8,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35767,
    "c": 0.15924,
    "h": 276
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#2C298D
secondary
#B4B65B
accent
#DE4ADA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2C298D

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

Preview Lab → · Contrast checker → · Palette generator →

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