#2D298E#2D298E

#2D298E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.160 H 276.4°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2D298E
RGBrgb(45, 41, 142)
HSLhsl(242, 55%, 36%)
HSVhsv(242, 71%, 56%)
CMYKcmyk(68.3%, 71.1%, 0%, 44.3%)
CIE-LABlab(23.99, 34.76, -55.17)
CIE-LCHlch(23.99, 65.21, 302.21°)
OKLaboklab(35.94% 0.0179 -0.1593)
OKLCHoklch(35.94% 0.16 276.4)
XYZxyz(6.7560, 4.0962, 26.0205)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D298E #8A8E29
analogous
#29578E #2D298E #5F298E
triadic
#2D298E #8E2D29 #298E2D
tetradic
#2D298E #8E2957 #8A8E29 #298E5F
square
#2D298E #8E2957 #8A8E29 #298E5F
split-complementary
#2D298E #8E5F29 #578E29
monochromatic
#0F0E2F #1E1B5F #2D298E #3C37BD #6560D1

Accessibility & contrast

On white

11.54
#2D298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2D298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D298E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D298E#FFFFFF#000000##FFFFFF
##2D298E1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d298e;
/* rgb */ color: rgb(45, 41, 142);
/* oklch */ color: oklch(35.9% 0.160 276.4);
Tailwind
colors: {
  custom: {
    50: '#7464b0',
    500: '#2d298e',
    950: '#000000',
  },
}
SCSS
$custom: #2d298e;
$custom-light: #7464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d298e",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 242.376,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35939,
    "c": 0.16031,
    "h": 276.4
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#2D298E
secondary
#B3B75C
accent
#DF49D9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2D298E

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

Preview Lab → · Contrast checker → · Palette generator →

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