#2D298D#2D298D

#2D298D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.159 H 276.5°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2D298D
RGBrgb(45, 41, 141)
HSLhsl(242, 55%, 36%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(68.1%, 70.9%, 0%, 44.7%)
CIE-LABlab(23.89, 34.42, -54.71)
CIE-LCHlch(23.89, 64.63, 302.17°)
OKLaboklab(35.84% 0.018 -0.158)
OKLCHoklch(35.84% 0.159 276.5)
XYZxyz(6.6813, 4.0663, 25.6269)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D298D #898D29
analogous
#29578D #2D298D #5F298D
triadic
#2D298D #8D2D29 #298D2D
tetradic
#2D298D #8D2957 #898D29 #298D5F
square
#2D298D #8D2957 #898D29 #298D5F
split-complementary
#2D298D #8D5F29 #578D29
monochromatic
#0F0D2E #1E1B5E #2D298D #3C37BC #6460D1

Accessibility & contrast

On white

11.58
#2D298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D298D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D298D#FFFFFF#000000##FFFFFF
##2D298D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d298d;
/* rgb */ color: rgb(45, 41, 141);
/* oklch */ color: oklch(35.8% 0.159 276.5);
Tailwind
colors: {
  custom: {
    50: '#7364af',
    500: '#2d298d',
    950: '#000000',
  },
}
SCSS
$custom: #2d298d;
$custom-light: #7364af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d298d",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 242.4,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35839,
    "c": 0.159,
    "h": 276.5
  },
  "luminance": 0.04067
}

Semantic roles & 50–950 ramp

primary
#2D298D
secondary
#B3B65B
accent
#DE4AD8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D298D

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

Preview Lab → · Contrast checker → · Palette generator →

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