#2C298B#2C298B

#2C298B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.157 H 276.2°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2C298B
RGBrgb(44, 41, 139)
HSLhsl(242, 54%, 35%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(68.3%, 70.5%, 0%, 45.5%)
CIE-LABlab(23.62, 33.59, -53.91)
CIE-LCHlch(23.62, 63.51, 301.92°)
OKLaboklab(35.57% 0.017 -0.1556)
OKLCHoklch(35.57% 0.157 276.2)
XYZxyz(6.4903, 3.9849, 24.8482)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C298B #888B29
analogous
#29578B #2C298B #5D298B
triadic
#2C298B #8B2C29 #298B2C
tetradic
#2C298B #8B2957 #888B29 #298B5D
square
#2C298B #8B2957 #888B29 #298B5D
split-complementary
#2C298B #8B5D29 #578B29
monochromatic
#0E0D2C #1D1B5C #2C298B #3B37BA #625FD0

Accessibility & contrast

On white

11.69
#2C298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2C298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C298B
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C298B#FFFFFF#000000##FFFFFF
##2C298B1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c298b;
/* rgb */ color: rgb(44, 41, 139);
/* oklch */ color: oklch(35.6% 0.157 276.2);
Tailwind
colors: {
  custom: {
    50: '#7363ae',
    500: '#2c298b',
    950: '#000000',
  },
}
SCSS
$custom: #2c298b;
$custom-light: #7363ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c298b",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 241.837,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35568,
    "c": 0.15658,
    "h": 276.2
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C298B

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

Preview Lab → · Contrast checker → · Palette generator →

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