#2C297D#2C297D

#2C297D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.137 H 277.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2C297D
RGBrgb(44, 41, 125)
HSLhsl(242, 51%, 33%)
HSVhsv(242, 67%, 49%)
CMYKcmyk(64.8%, 67.2%, 0%, 51%)
CIE-LABlab(22.31, 28.65, -47.26)
CIE-LCHlch(22.31, 55.27, 301.22°)
OKLaboklab(34.21% 0.0188 -0.1362)
OKLCHoklch(34.21% 0.137 277.8)
XYZxyz(5.5321, 3.6016, 19.8017)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C297D #7A7D29
analogous
#29507D #2C297D #56297D
triadic
#2C297D #7D2C29 #297D2C
tetradic
#2C297D #7D2950 #7A7D29 #297D56
square
#2C297D #7D2950 #7A7D29 #297D56
split-complementary
#2C297D #7D5629 #507D29
monochromatic
#0C0B21 #1C1A4F #2C297D #3C38AB #5C58C8

Accessibility & contrast

On white

12.21
#2C297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2C297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C297D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C297D#FFFFFF#000000##FFFFFF
##2C297D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c297d;
/* rgb */ color: rgb(44, 41, 125);
/* oklch */ color: oklch(34.2% 0.137 277.8);
Tailwind
colors: {
  custom: {
    50: '#6f63a3',
    500: '#2c297d',
    950: '#000000',
  },
}
SCSS
$custom: #2c297d;
$custom-light: #6f63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c297d",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 242.143,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34214,
    "c": 0.13748,
    "h": 277.8
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#2C297D
secondary
#AAAE54
accent
#DA4ED5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C297D

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

Preview Lab → · Contrast checker → · Palette generator →

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