#2B2B7D#2B2B7D

#2B2B7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.135 H 276.7°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2B2B7D
RGBrgb(43, 43, 125)
HSLhsl(240, 49%, 33%)
HSVhsv(240, 66%, 49%)
CMYKcmyk(65.6%, 65.6%, 0%, 51%)
CIE-LABlab(22.73, 27.17, -46.58)
CIE-LCHlch(22.73, 53.92, 300.25°)
OKLaboklab(34.5% 0.0157 -0.1342)
OKLCHoklch(34.5% 0.135 276.7)
XYZxyz(5.5606, 3.7216, 19.8234)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B7D #7D7D2B
analogous
#2B547D #2B2B7D #542B7D
triadic
#2B2B7D #7D2B2B #2B7D2B
tetradic
#2B2B7D #7D2B54 #7D7D2B #2B7D54
square
#2B2B7D #7D2B54 #7D7D2B #2B7D54
split-complementary
#2B2B7D #7D542B #547D2B
monochromatic
#0C0C22 #1B1B4F #2B2B7D #3B3BAB #5C5CC7

Accessibility & contrast

On white

12.04
#2B2B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B2B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B7D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B7D#FFFFFF#000000##FFFFFF
##2B2B7D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2b7d;
/* rgb */ color: rgb(43, 43, 125);
/* oklch */ color: oklch(34.5% 0.135 276.7);
Tailwind
colors: {
  custom: {
    50: '#6f64a3',
    500: '#2b2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b7d;
$custom-light: #6f64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b7d",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 240,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34501,
    "c": 0.13511,
    "h": 276.7
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#2B2B7D
secondary
#ADAD57
accent
#D84FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2B2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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