#2B298B#2B298B

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

Color values

HEX#2B298B
RGBrgb(43, 41, 139)
HSLhsl(241, 54%, 35%)
HSVhsv(241, 71%, 55%)
CMYKcmyk(69.1%, 70.5%, 0%, 45.5%)
CIE-LABlab(23.55, 33.45, -54.03)
CIE-LCHlch(23.55, 63.55, 301.76°)
OKLaboklab(35.5% 0.0157 -0.156)
OKLCHoklch(35.5% 0.157 275.7)
XYZxyz(6.4479, 3.9630, 24.8462)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B298B #898B29
analogous
#29588B #2B298B #5C298B
triadic
#2B298B #8B2B29 #298B2B
tetradic
#2B298B #8B2958 #898B29 #298B5C
square
#2B298B #8B2958 #898B29 #298B5C
split-complementary
#2B298B #8B5C29 #588B29
monochromatic
#0E0D2C #1C1B5C #2B298B #3A37BA #615FD0

Accessibility & contrast

On white

11.71
#2B298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2B298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B298B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B298B#FFFFFF#000000##FFFFFF
##2B298B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b298b;
/* rgb */ color: rgb(43, 41, 139);
/* oklch */ color: oklch(35.5% 0.157 275.7);
Tailwind
colors: {
  custom: {
    50: '#7263ae',
    500: '#2b298b',
    950: '#000000',
  },
}
SCSS
$custom: #2b298b;
$custom-light: #7263ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b298b",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 241.224,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35497,
    "c": 0.15683,
    "h": 275.7
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

primary
#2B298B
secondary
#B3B55B
accent
#DE4ADB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2B298B

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

Preview Lab → · Contrast checker → · Palette generator →

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