#2B288A#2B288A

#2B288A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.157 H 276.1°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2B288A
RGBrgb(43, 40, 138)
HSLhsl(242, 55%, 35%)
HSVhsv(242, 71%, 54%)
CMYKcmyk(68.8%, 71%, 0%, 45.9%)
CIE-LABlab(23.22, 33.73, -53.94)
CIE-LCHlch(23.22, 63.62, 302.02°)
OKLaboklab(35.23% 0.0166 -0.1558)
OKLCHoklch(35.23% 0.157 276.1)
XYZxyz(6.3410, 3.8656, 24.4518)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B288A #878A28
analogous
#28568A #2B288A #5C288A
triadic
#2B288A #8A2B28 #288A2B
tetradic
#2B288A #8A2856 #878A28 #288A5C
square
#2B288A #8A2856 #878A28 #288A5C
split-complementary
#2B288A #8A5C28 #568A28
monochromatic
#0D0C2B #1C1A5B #2B288A #3A36B9 #605DD0

Accessibility & contrast

On white

11.84
#2B288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B288A
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B288A#FFFFFF#000000##FFFFFF
##2B288A1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b288a;
/* rgb */ color: rgb(43, 40, 138);
/* oklch */ color: oklch(35.2% 0.157 276.1);
Tailwind
colors: {
  custom: {
    50: '#7263ad',
    500: '#2b288a',
    950: '#000000',
  },
}
SCSS
$custom: #2b288a;
$custom-light: #7263ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b288a",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 241.837,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35232,
    "c": 0.15666,
    "h": 276.1
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#2B288A
secondary
#B2B559
accent
#DE49DA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B288A

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

Preview Lab → · Contrast checker → · Palette generator →

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