#2B2D8A#2B2D8A

#2B2D8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.151 H 274.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2B2D8A
RGBrgb(43, 45, 138)
HSLhsl(239, 52%, 35%)
HSVhsv(239, 69%, 54%)
CMYKcmyk(68.8%, 67.4%, 0%, 45.9%)
CIE-LABlab(24.40, 30.54, -52.01)
CIE-LCHlch(24.40, 60.31, 300.42°)
OKLaboklab(36.09% 0.0128 -0.1501)
OKLCHoklch(36.09% 0.151 274.9)
XYZxyz(6.5206, 4.2248, 24.5117)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2D8A #8A882B
analogous
#2B5C8A #2B2D8A #582B8A
triadic
#2B2D8A #8A2B2D #2D8A2B
tetradic
#2B2D8A #8A2B5C #8A882B #2B8A58
square
#2B2D8A #8A2B5C #8A882B #2B8A58
split-complementary
#2B2D8A #8A582B #5C8A2B
monochromatic
#0E0F2D #1C1E5B #2B2D8A #3A3CB9 #6164CE

Accessibility & contrast

On white

11.38
#2B2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2D8A
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2D8A#FFFFFF#000000##FFFFFF
##2B2D8A1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2d8a;
/* rgb */ color: rgb(43, 45, 138);
/* oklch */ color: oklch(36.1% 0.151 274.9);
Tailwind
colors: {
  custom: {
    50: '#7266ad',
    500: '#2b2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b2d8a;
$custom-light: #7266ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2d8a",
  "rgb": {
    "r": 43,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 238.737,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36085,
    "c": 0.15066,
    "h": 274.9
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#2B2D8A
secondary
#B4B25D
accent
#D94CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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