#2D297F#2D297F

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

Color values

HEX#2D297F
RGBrgb(45, 41, 127)
HSLhsl(243, 51%, 33%)
HSVhsv(243, 68%, 50%)
CMYKcmyk(64.6%, 67.7%, 0%, 50.2%)
CIE-LABlab(22.57, 29.52, -48.10)
CIE-LCHlch(22.57, 56.44, 301.54°)
OKLaboklab(34.48% 0.0199 -0.1386)
OKLCHoklch(34.48% 0.14 278.2)
XYZxyz(5.7047, 3.6756, 20.4834)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D297F #7B7F29
analogous
#29507F #2D297F #58297F
triadic
#2D297F #7F2D29 #297F2D
tetradic
#2D297F #7F2950 #7B7F29 #297F58
square
#2D297F #7F2950 #7B7F29 #297F58
split-complementary
#2D297F #7F5829 #507F29
monochromatic
#0C0B22 #1D1A51 #2D297F #3D38AD #5E59C9

Accessibility & contrast

On white

12.10
#2D297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D297F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D297F#FFFFFF#000000##FFFFFF
##2D297F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.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: #2d297f;
/* rgb */ color: rgb(45, 41, 127);
/* oklch */ color: oklch(34.5% 0.140 278.2);
Tailwind
colors: {
  custom: {
    50: '#7063a5',
    500: '#2d297f',
    950: '#000000',
  },
}
SCSS
$custom: #2d297f;
$custom-light: #7063a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d297f",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 242.791,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3448,
    "c": 0.14003,
    "h": 278.2
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#2D297F
secondary
#ABAF55
accent
#DB4DD4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D297F

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

Preview Lab → · Contrast checker → · Palette generator →

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