#2D298A#2D298A

#2D298A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.155 H 276.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2D298A
RGBrgb(45, 41, 138)
HSLhsl(242, 54%, 35%)
HSVhsv(242, 70%, 54%)
CMYKcmyk(67.4%, 70.3%, 0%, 45.9%)
CIE-LABlab(23.60, 33.37, -53.32)
CIE-LCHlch(23.60, 62.90, 302.04°)
OKLaboklab(35.54% 0.0185 -0.1539)
OKLCHoklch(35.54% 0.155 276.8)
XYZxyz(6.4611, 3.9782, 24.4672)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D298A #868A29
analogous
#29568A #2D298A #5D298A
triadic
#2D298A #8A2D29 #298A2D
tetradic
#2D298A #8A2956 #868A29 #298A5D
square
#2D298A #8A2956 #868A29 #298A5D
split-complementary
#2D298A #8A5D29 #568A29
monochromatic
#0E0D2C #1E1B5B #2D298A #3C37B9 #635ECF

Accessibility & contrast

On white

11.69
#2D298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2D298A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D298A
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D298A#FFFFFF#000000##FFFFFF
##2D298A1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d298a;
/* rgb */ color: rgb(45, 41, 138);
/* oklch */ color: oklch(35.5% 0.155 276.8);
Tailwind
colors: {
  custom: {
    50: '#7363ad',
    500: '#2d298a',
    950: '#000000',
  },
}
SCSS
$custom: #2d298a;
$custom-light: #7363ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d298a",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 242.474,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35542,
    "c": 0.15501,
    "h": 276.8
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#2D298A
secondary
#B1B55A
accent
#DE4AD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D298A

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

Preview Lab → · Contrast checker → · Palette generator →

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