#2D297E#2D297E

#2D297E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.139 H 278.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2D297E
RGBrgb(45, 41, 126)
HSLhsl(243, 51%, 33%)
HSVhsv(243, 67%, 49%)
CMYKcmyk(64.3%, 67.5%, 0%, 50.6%)
CIE-LABlab(22.48, 29.17, -47.62)
CIE-LCHlch(22.48, 55.84, 301.49°)
OKLaboklab(34.39% 0.02 -0.1372)
OKLCHoklch(34.39% 0.139 278.3)
XYZxyz(5.6398, 3.6497, 20.1419)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D297E #7A7E29
analogous
#294F7E #2D297E #58297E
triadic
#2D297E #7E2D29 #297E2D
tetradic
#2D297E #7E294F #7A7E29 #297E58
square
#2D297E #7E294F #7A7E29 #297E58
split-complementary
#2D297E #7E5829 #4F7E29
monochromatic
#0C0B22 #1D1A50 #2D297E #3D38AC #5E59C9

Accessibility & contrast

On white

12.14
#2D297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D297E
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D297E#FFFFFF#000000##FFFFFF
##2D297E1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d297e;
/* rgb */ color: rgb(45, 41, 126);
/* oklch */ color: oklch(34.4% 0.139 278.3);
Tailwind
colors: {
  custom: {
    50: '#7063a4',
    500: '#2d297e',
    950: '#000000',
  },
}
SCSS
$custom: #2d297e;
$custom-light: #7063a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d297e",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 242.824,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34386,
    "c": 0.13864,
    "h": 278.3
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#2D297E
secondary
#AAAE55
accent
#DA4DD4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D297E

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

Preview Lab → · Contrast checker → · Palette generator →

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