#2B2B74#2B2B74

#2B2B74 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.122 H 277.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2B2B74
RGBrgb(43, 43, 116)
HSLhsl(240, 46%, 31%)
HSVhsv(240, 63%, 45%)
CMYKcmyk(62.9%, 62.9%, 0%, 54.5%)
CIE-LABlab(21.95, 23.91, -42.12)
CIE-LCHlch(21.95, 48.43, 299.58°)
OKLaboklab(33.69% 0.0162 -0.1211)
OKLCHoklch(33.69% 0.122 277.6)
XYZxyz(5.0115, 3.5019, 16.9315)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B74 #74742B
analogous
#2B4F74 #2B2B74 #4F2B74
triadic
#2B2B74 #742B2B #2B742B
tetradic
#2B2B74 #742B4F #74742B #2B744F
square
#2B2B74 #742B4F #74742B #2B744F
split-complementary
#2B2B74 #744F2B #4F742B
monochromatic
#0A0A1B #1A1A47 #2B2B74 #3C3CA1 #5858C1

Accessibility & contrast

On white

12.35
#2B2B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B2B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B74
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B74#FFFFFF#000000##FFFFFF
##2B2B741.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b2b74;
/* rgb */ color: rgb(43, 43, 116);
/* oklch */ color: oklch(33.7% 0.122 277.6);
Tailwind
colors: {
  custom: {
    50: '#6d649d',
    500: '#2b2b74',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b74;
$custom-light: #6d649d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b74",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 116
  },
  "hsl": {
    "h": 240,
    "s": 45.912,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33688,
    "c": 0.12216,
    "h": 277.6
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#2B2B74
secondary
#A6A655
accent
#D652D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2B2B74

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

Preview Lab → · Contrast checker → · Palette generator →

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