#2B2B72#2B2B72

#2B2B72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.5% C 0.119 H 277.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2B2B72
RGBrgb(43, 43, 114)
HSLhsl(240, 45%, 31%)
HSVhsv(240, 62%, 45%)
CMYKcmyk(62.3%, 62.3%, 0%, 55.3%)
CIE-LABlab(21.78, 23.18, -41.11)
CIE-LCHlch(21.78, 47.19, 299.42°)
OKLaboklab(33.51% 0.0162 -0.1181)
OKLCHoklch(33.51% 0.119 277.8)
XYZxyz(4.8964, 3.4559, 16.3254)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B72 #72722B
analogous
#2B4E72 #2B2B72 #4E2B72
triadic
#2B2B72 #722B2B #2B722B
tetradic
#2B2B72 #722B4E #72722B #2B724E
square
#2B2B72 #722B4E #72722B #2B724E
split-complementary
#2B2B72 #724E2B #4E722B
monochromatic
#090919 #1A1A46 #2B2B72 #3C3C9E #5858C0

Accessibility & contrast

On white

12.42
#2B2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B2B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B72
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B72#FFFFFF#000000##FFFFFF
##2B2B721.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b2b72;
/* rgb */ color: rgb(43, 43, 114);
/* oklch */ color: oklch(33.5% 0.119 277.8);
Tailwind
colors: {
  custom: {
    50: '#6c649b',
    500: '#2b2b72',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b72;
$custom-light: #6c649b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b72",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33512,
    "c": 0.11923,
    "h": 277.8
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#2B2B72
secondary
#A4A455
accent
#D553D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2B2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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