#2D298B#2D298B

#2D298B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.156 H 276.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2D298B
RGBrgb(45, 41, 139)
HSLhsl(242, 54%, 35%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(67.6%, 70.5%, 0%, 45.5%)
CIE-LABlab(23.70, 33.72, -53.78)
CIE-LCHlch(23.70, 63.48, 302.09°)
OKLaboklab(35.64% 0.0183 -0.1553)
OKLCHoklch(35.64% 0.156 276.7)
XYZxyz(6.5338, 4.0073, 24.8503)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D298B #878B29
analogous
#29568B #2D298B #5E298B
triadic
#2D298B #8B2D29 #298B2D
tetradic
#2D298B #8B2956 #878B29 #298B5E
square
#2D298B #8B2956 #878B29 #298B5E
split-complementary
#2D298B #8B5E29 #568B29
monochromatic
#0E0D2C #1E1B5C #2D298B #3C37BA #635FD0

Accessibility & contrast

On white

11.66
#2D298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D298B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D298B#FFFFFF#000000##FFFFFF
##2D298B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d298b;
/* rgb */ color: rgb(45, 41, 139);
/* oklch */ color: oklch(35.6% 0.156 276.7);
Tailwind
colors: {
  custom: {
    50: '#7363ae',
    500: '#2d298b',
    950: '#000000',
  },
}
SCSS
$custom: #2d298b;
$custom-light: #7363ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d298b",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 242.449,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35641,
    "c": 0.15634,
    "h": 276.7
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#2D298B
secondary
#B2B55B
accent
#DE4AD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D298B

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

Preview Lab → · Contrast checker → · Palette generator →

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