#2C297F#2C297F

#2C297F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.140 H 277.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2C297F
RGBrgb(44, 41, 127)
HSLhsl(242, 51%, 33%)
HSVhsv(242, 68%, 50%)
CMYKcmyk(65.4%, 67.7%, 0%, 50.2%)
CIE-LABlab(22.49, 29.36, -48.23)
CIE-LCHlch(22.49, 56.47, 301.33°)
OKLaboklab(34.4% 0.0186 -0.139)
OKLCHoklch(34.4% 0.14 277.6)
XYZxyz(5.6612, 3.6532, 20.4814)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C297F #7C7F29
analogous
#29517F #2C297F #57297F
triadic
#2C297F #7F2C29 #297F2C
tetradic
#2C297F #7F2951 #7C7F29 #297F57
square
#2C297F #7F2951 #7C7F29 #297F57
split-complementary
#2C297F #7F5729 #517F29
monochromatic
#0C0B22 #1C1A51 #2C297F #3C38AD #5D59C9

Accessibility & contrast

On white

12.13
#2C297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C297F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C297F#FFFFFF#000000##FFFFFF
##2C297F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c297f;
/* rgb */ color: rgb(44, 41, 127);
/* oklch */ color: oklch(34.4% 0.140 277.6);
Tailwind
colors: {
  custom: {
    50: '#7063a5',
    500: '#2c297f',
    950: '#000000',
  },
}
SCSS
$custom: #2c297f;
$custom-light: #7063a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c297f",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 242.093,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34403,
    "c": 0.14026,
    "h": 277.6
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#2C297F
secondary
#ACAF55
accent
#DB4DD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C297F

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

Preview Lab → · Contrast checker → · Palette generator →

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