#2D295E#2D295E

#2D295E is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.6% C 0.091 H 283.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2D295E
RGBrgb(45, 41, 94)
HSLhsl(245, 39%, 26%)
HSVhsv(245, 56%, 37%)
CMYKcmyk(52.1%, 56.4%, 0%, 63.1%)
CIE-LABlab(19.85, 17.86, -31.20)
CIE-LCHlch(19.85, 35.95, 299.78°)
OKLaboklab(31.62% 0.021 -0.0889)
OKLCHoklch(31.62% 0.091 283.3)
XYZxyz(3.8949, 2.9517, 10.9520)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D295E #5A5E29
analogous
#29405E #2D295E #48295E
triadic
#2D295E #5E2D29 #295E2D
tetradic
#2D295E #5E2940 #5A5E29 #295E48
square
#2D295E #5E2940 #5A5E29 #295E48
split-complementary
#2D295E #5E4829 #405E29
monochromatic
#0A0915 #191633 #2D295E #413C89 #574FB2

Accessibility & contrast

On white

13.20
#2D295E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D295E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D295E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D295E#FFFFFF#000000##FFFFFF
##2D295E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3260
Deuteranopia (green-blind)
#0B2E5D
Tritanopia (blue-blind)
#1B353F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d295e;
/* rgb */ color: rgb(45, 41, 94);
/* oklch */ color: oklch(31.6% 0.091 283.3);
Tailwind
colors: {
  custom: {
    50: '#6a628c',
    500: '#2d295e',
    950: '#000000',
  },
}
SCSS
$custom: #2d295e;
$custom-light: #6a628c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d295e",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 94
  },
  "hsl": {
    "h": 244.528,
    "s": 39.259,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31623,
    "c": 0.09138,
    "h": 283.3
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#2D295E
secondary
#8C9152
accent
#CF59C6
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2D295E

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

Preview Lab → · Contrast checker → · Palette generator →

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