#2D297C#2D297C

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

Color values

HEX#2D297C
RGBrgb(45, 41, 124)
HSLhsl(243, 50%, 32%)
HSVhsv(243, 67%, 49%)
CMYKcmyk(63.7%, 66.9%, 0%, 51.4%)
CIE-LABlab(22.30, 28.46, -46.64)
CIE-LCHlch(22.30, 54.64, 301.39°)
OKLaboklab(34.2% 0.0202 -0.1343)
OKLCHoklch(34.2% 0.136 278.6)
XYZxyz(5.5121, 3.5986, 19.4690)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D297C #787C29
analogous
#294E7C #2D297C #57297C
triadic
#2D297C #7C2D29 #297C2D
tetradic
#2D297C #7C294E #787C29 #297C57
square
#2D297C #7C294E #787C29 #297C57
split-complementary
#2D297C #7C5729 #4E7C29
monochromatic
#0C0B20 #1C1A4E #2D297C #3E38AA #5D58C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D297C#FFFFFF#000000##FFFFFF
##2D297C1.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)
#00397F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d297c;
/* rgb */ color: rgb(45, 41, 124);
/* oklch */ color: oklch(34.2% 0.136 278.6);
Tailwind
colors: {
  custom: {
    50: '#7063a3',
    500: '#2d297c',
    950: '#000000',
  },
}
SCSS
$custom: #2d297c;
$custom-light: #7063a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d297c",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 242.892,
    "s": 50.303,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34199,
    "c": 0.13585,
    "h": 278.6
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#2D297C
secondary
#A9AD54
accent
#DA4ED3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D297C

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

Preview Lab → · Contrast checker → · Palette generator →

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