#2B339D#2B339D

#2B339D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.169 H 272.3°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2B339D
RGBrgb(43, 51, 157)
HSLhsl(236, 57%, 39%)
HSVhsv(236, 73%, 62%)
CMYKcmyk(72.6%, 67.5%, 0%, 38.4%)
CIE-LABlab(27.61, 33.52, -58.44)
CIE-LCHlch(27.61, 67.37, 299.84°)
OKLaboklab(38.96% 0.0067 -0.1689)
OKLCHoklch(38.96% 0.169 272.3)
XYZxyz(8.2638, 5.3147, 32.4821)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B339D #9D952B
analogous
#2B6C9D #2B339D #5C2B9D
triadic
#2B339D #9D2B33 #339D2B
tetradic
#2B339D #9D2B6C #9D952B #2B9D5C
square
#2B339D #9D2B6C #9D952B #2B9D5C
split-complementary
#2B339D #9D5C2B #6C9D2B
monochromatic
#11143D #1E236D #2B339D #3C46CA #6C73D7

Accessibility & contrast

On white

10.18
#2B339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2B339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B339D
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B339D#FFFFFF#000000##FFFFFF
##2B339D1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b339d;
/* rgb */ color: rgb(43, 51, 157);
/* oklch */ color: oklch(39.0% 0.169 272.3);
Tailwind
colors: {
  custom: {
    50: '#756bbb',
    500: '#2b339d',
    950: '#000000',
  },
}
SCSS
$custom: #2b339d;
$custom-light: #756bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b339d",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 235.789,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38964,
    "c": 0.16905,
    "h": 272.3
  },
  "luminance": 0.05316
}

Semantic roles & 50–950 ramp

primary
#2B339D
secondary
#BDB766
accent
#D648E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B339D

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

Preview Lab → · Contrast checker → · Palette generator →

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