#2B288C#2B288C

#2B288C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.159 H 275.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2B288C
RGBrgb(43, 40, 140)
HSLhsl(242, 56%, 35%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(69.3%, 71.4%, 0%, 45.1%)
CIE-LABlab(23.42, 34.43, -54.87)
CIE-LCHlch(23.42, 64.77, 302.11°)
OKLaboklab(35.43% 0.0163 -0.1585)
OKLCHoklch(35.43% 0.159 275.9)
XYZxyz(6.4871, 3.9240, 25.2214)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B288C #898C28
analogous
#28578C #2B288C #5D288C
triadic
#2B288C #8C2B28 #288C2B
tetradic
#2B288C #8C2857 #898C28 #288C5D
square
#2B288C #8C2857 #898C28 #288C5D
split-complementary
#2B288C #8C5D28 #578C28
monochromatic
#0E0D2D #1C1A5C #2B288C #3A36BC #615ED1

Accessibility & contrast

On white

11.76
#2B288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B288C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B288C#FFFFFF#000000##FFFFFF
##2B288C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b288c;
/* rgb */ color: rgb(43, 40, 140);
/* oklch */ color: oklch(35.4% 0.159 275.9);
Tailwind
colors: {
  custom: {
    50: '#7263af',
    500: '#2b288c',
    950: '#000000',
  },
}
SCSS
$custom: #2b288c;
$custom-light: #7263af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b288c",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 241.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.15931,
    "h": 275.9
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#2B288C
secondary
#B3B65A
accent
#DF49DA
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B288C

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

Preview Lab → · Contrast checker → · Palette generator →

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