#2D298F#2D298F

#2D298F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.162 H 276.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2D298F
RGBrgb(45, 41, 143)
HSLhsl(242, 55%, 36%)
HSVhsv(242, 71%, 56%)
CMYKcmyk(68.5%, 71.3%, 0%, 43.9%)
CIE-LABlab(24.08, 35.11, -55.63)
CIE-LCHlch(24.08, 65.78, 302.26°)
OKLaboklab(36.04% 0.0177 -0.1607)
OKLCHoklch(36.04% 0.162 276.3)
XYZxyz(6.8314, 4.1263, 26.4177)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D298F #8B8F29
analogous
#29588F #2D298F #60298F
triadic
#2D298F #8F2D29 #298F2D
tetradic
#2D298F #8F2958 #8B8F29 #298F60
square
#2D298F #8F2958 #8B8F29 #298F60
split-complementary
#2D298F #8F6029 #588F29
monochromatic
#0F0E30 #1E1B5F #2D298F #3C37BF #6561D2

Accessibility & contrast

On white

11.50
#2D298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D298F
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D298F#FFFFFF#000000##FFFFFF
##2D298F1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d298f;
/* rgb */ color: rgb(45, 41, 143);
/* oklch */ color: oklch(36.0% 0.162 276.3);
Tailwind
colors: {
  custom: {
    50: '#7464b1',
    500: '#2d298f',
    950: '#000000',
  },
}
SCSS
$custom: #2d298f;
$custom-light: #7464b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d298f",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 242.353,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.16163,
    "h": 276.3
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#2D298F
secondary
#B4B75C
accent
#DF49D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2D298F

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

Preview Lab → · Contrast checker → · Palette generator →

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