#2B2B8A#2B2B8A

#2B2B8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.153 H 275.4°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2B2B8A
RGBrgb(43, 43, 138)
HSLhsl(240, 52%, 35%)
HSVhsv(240, 69%, 54%)
CMYKcmyk(68.8%, 68.8%, 0%, 45.9%)
CIE-LABlab(23.92, 31.83, -52.80)
CIE-LCHlch(23.92, 61.65, 301.09°)
OKLaboklab(35.74% 0.0144 -0.1524)
OKLCHoklch(35.74% 0.153 275.4)
XYZxyz(6.4461, 4.0757, 24.4868)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B8A #8A8A2B
analogous
#2B5A8A #2B2B8A #5A2B8A
triadic
#2B2B8A #8A2B2B #2B8A2B
tetradic
#2B2B8A #8A2B5A #8A8A2B #2B8A5A
square
#2B2B8A #8A2B5A #8A8A2B #2B8A5A
split-complementary
#2B2B8A #8A5A2B #5A8A2B
monochromatic
#0E0E2D #1C1C5B #2B2B8A #3A3AB9 #6161CE

Accessibility & contrast

On white

11.57
#2B2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2B8A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B8A#FFFFFF#000000##FFFFFF
##2B2B8A1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b2b8a;
/* rgb */ color: rgb(43, 43, 138);
/* oklch */ color: oklch(35.7% 0.153 275.4);
Tailwind
colors: {
  custom: {
    50: '#7265ad',
    500: '#2b2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b8a;
$custom-light: #7265ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b8a",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35736,
    "c": 0.15311,
    "h": 275.4
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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