#2B288E#2B288E

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

Color values

HEX#2B288E
RGBrgb(43, 40, 142)
HSLhsl(242, 56%, 36%)
HSVhsv(242, 72%, 56%)
CMYKcmyk(69.7%, 71.8%, 0%, 44.3%)
CIE-LABlab(23.62, 35.12, -55.78)
CIE-LCHlch(23.62, 65.92, 302.19°)
OKLaboklab(35.64% 0.0159 -0.1612)
OKLCHoklch(35.64% 0.162 275.6)
XYZxyz(6.6359, 3.9836, 26.0051)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B288E #8B8E28
analogous
#28588E #2B288E #5E288E
triadic
#2B288E #8E2B28 #288E2B
tetradic
#2B288E #8E2858 #8B8E28 #288E5E
square
#2B288E #8E2858 #8B8E28 #288E5E
split-complementary
#2B288E #8E5E28 #588E28
monochromatic
#0E0D2F #1D1B5E #2B288E #3935BE #625FD2

Accessibility & contrast

On white

11.69
#2B288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B288E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B288E#FFFFFF#000000##FFFFFF
##2B288E1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b288e;
/* rgb */ color: rgb(43, 40, 142);
/* oklch */ color: oklch(35.6% 0.162 275.6);
Tailwind
colors: {
  custom: {
    50: '#7363b0',
    500: '#2b288e',
    950: '#000000',
  },
}
SCSS
$custom: #2b288e;
$custom-light: #7363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b288e",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 241.765,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35636,
    "c": 0.16195,
    "h": 275.6
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#2B288E
secondary
#B5B75B
accent
#DF48DB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B288E

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

Preview Lab → · Contrast checker → · Palette generator →

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