#2B2B7E#2B2B7E

#2B2B7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.137 H 276.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2B2B7E
RGBrgb(43, 43, 126)
HSLhsl(240, 49%, 33%)
HSVhsv(240, 66%, 49%)
CMYKcmyk(65.9%, 65.9%, 0%, 50.6%)
CIE-LABlab(22.82, 27.53, -47.07)
CIE-LCHlch(22.82, 54.53, 300.32°)
OKLaboklab(34.59% 0.0156 -0.1356)
OKLCHoklch(34.59% 0.137 276.5)
XYZxyz(5.6248, 3.7472, 20.1615)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B7E #7E7E2B
analogous
#2B547E #2B2B7E #542B7E
triadic
#2B2B7E #7E2B2B #2B7E2B
tetradic
#2B2B7E #7E2B54 #7E7E2B #2B7E54
square
#2B2B7E #7E2B54 #7E7E2B #2B7E54
split-complementary
#2B2B7E #7E542B #547E2B
monochromatic
#0C0C23 #1B1B50 #2B2B7E #3B3BAC #5C5CC7

Accessibility & contrast

On white

12.00
#2B2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B7E
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B7E#FFFFFF#000000##FFFFFF
##2B2B7E1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2b7e;
/* rgb */ color: rgb(43, 43, 126);
/* oklch */ color: oklch(34.6% 0.137 276.5);
Tailwind
colors: {
  custom: {
    50: '#6f64a4',
    500: '#2b2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b7e;
$custom-light: #6f64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b7e",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34594,
    "c": 0.13652,
    "h": 276.5
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#2B2B7E
secondary
#ADAD58
accent
#D94FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2B2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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