#2B339B#2B339B

#2B339B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.166 H 272.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2B339B
RGBrgb(43, 51, 155)
HSLhsl(236, 57%, 39%)
HSVhsv(236, 72%, 61%)
CMYKcmyk(72.3%, 67.1%, 0%, 39.2%)
CIE-LABlab(27.43, 32.80, -57.53)
CIE-LCHlch(27.43, 66.22, 299.69°)
OKLaboklab(38.77% 0.0069 -0.1662)
OKLCHoklch(38.77% 0.166 272.4)
XYZxyz(8.0945, 5.2470, 31.5902)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B339B #9B932B
analogous
#2B6B9B #2B339B #5B2B9B
triadic
#2B339B #9B2B33 #339B2B
tetradic
#2B339B #9B2B6B #9B932B #2B9B5B
square
#2B339B #9B2B6B #9B932B #2B9B5B
split-complementary
#2B339B #9B5B2B #6B9B2B
monochromatic
#10133B #1E236B #2B339B #3B45C9 #6B72D6

Accessibility & contrast

On white

10.25
#2B339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2B339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B339B
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B339B#FFFFFF#000000##FFFFFF
##2B339B1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b339b;
/* rgb */ color: rgb(43, 51, 155);
/* oklch */ color: oklch(38.8% 0.166 272.4);
Tailwind
colors: {
  custom: {
    50: '#756bb9',
    500: '#2b339b',
    950: '#000000',
  },
}
SCSS
$custom: #2b339b;
$custom-light: #756bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b339b",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 235.714,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38771,
    "c": 0.16639,
    "h": 272.4
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#2B339B
secondary
#BCB665
accent
#D548E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B339B

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

Preview Lab → · Contrast checker → · Palette generator →

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