#2B288B#2B288B

#2B288B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.158 H 276.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2B288B
RGBrgb(43, 40, 139)
HSLhsl(242, 55%, 35%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(69.1%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.32, 34.08, -54.40)
CIE-LCHlch(23.32, 64.20, 302.06°)
OKLaboklab(35.33% 0.0164 -0.1571)
OKLCHoklch(35.33% 0.158 276)
XYZxyz(6.4137, 3.8947, 24.8348)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B288B #888B28
analogous
#28578B #2B288B #5C288B
triadic
#2B288B #8B2B28 #288B2B
tetradic
#2B288B #8B2857 #888B28 #288B5C
square
#2B288B #8B2857 #888B28 #288B5C
split-complementary
#2B288B #8B5C28 #578B28
monochromatic
#0E0D2C #1C1A5B #2B288B #3A36BB #615DD0

Accessibility & contrast

On white

11.80
#2B288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2B288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B288B
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B288B#FFFFFF#000000##FFFFFF
##2B288B1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b288b;
/* rgb */ color: rgb(43, 40, 139);
/* oklch */ color: oklch(35.3% 0.158 276.0);
Tailwind
colors: {
  custom: {
    50: '#7263ae',
    500: '#2b288b',
    950: '#000000',
  },
}
SCSS
$custom: #2b288b;
$custom-light: #7263ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b288b",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 241.818,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35333,
    "c": 0.15799,
    "h": 276
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#2B288B
secondary
#B3B659
accent
#DF49DA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B288B

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

Preview Lab → · Contrast checker → · Palette generator →

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