#2B2B8B#2B2B8B

#2B2B8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.154 H 275.3°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2B2B8B
RGBrgb(43, 43, 139)
HSLhsl(240, 53%, 36%)
HSVhsv(240, 69%, 55%)
CMYKcmyk(69.1%, 69.1%, 0%, 45.5%)
CIE-LABlab(24.01, 32.19, -53.26)
CIE-LCHlch(24.01, 62.23, 301.15°)
OKLaboklab(35.83% 0.0143 -0.1538)
OKLCHoklch(35.83% 0.154 275.3)
XYZxyz(6.5188, 4.1048, 24.8699)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B8B #8B8B2B
analogous
#2B5B8B #2B2B8B #5B2B8B
triadic
#2B2B8B #8B2B2B #2B8B2B
tetradic
#2B2B8B #8B2B5B #8B8B2B #2B8B5B
square
#2B2B8B #8B2B5B #8B8B2B #2B8B5B
split-complementary
#2B2B8B #8B5B2B #5B8B2B
monochromatic
#0E0E2E #1D1D5C #2B2B8B #3939BA #6262CE

Accessibility & contrast

On white

11.53
#2B2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2B2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B8B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B8B#FFFFFF#000000##FFFFFF
##2B2B8B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b2b8b;
/* rgb */ color: rgb(43, 43, 139);
/* oklch */ color: oklch(35.8% 0.154 275.3);
Tailwind
colors: {
  custom: {
    50: '#7265ae',
    500: '#2b2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b8b;
$custom-light: #7265ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b8b",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35834,
    "c": 0.15445,
    "h": 275.3
  },
  "luminance": 0.04105
}

Semantic roles & 50–950 ramp

primary
#2B2B8B
secondary
#B5B55D
accent
#DC4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2B2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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