#2B339E#2B339E

#2B339E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.170 H 272.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2B339E
RGBrgb(43, 51, 158)
HSLhsl(236, 57%, 39%)
HSVhsv(236, 73%, 62%)
CMYKcmyk(72.8%, 67.7%, 0%, 38%)
CIE-LABlab(27.71, 33.88, -58.90)
CIE-LCHlch(27.71, 67.94, 299.91°)
OKLaboklab(39.06% 0.0066 -0.1703)
OKLCHoklch(39.06% 0.17 272.2)
XYZxyz(8.3496, 5.3490, 32.9336)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B339E #9E962B
analogous
#2B6D9E #2B339E #5D2B9E
triadic
#2B339E #9E2B33 #339E2B
tetradic
#2B339E #9E2B6D #9E962B #2B9E5D
square
#2B339E #9E2B6D #9E962B #2B9E5D
split-complementary
#2B339E #9E5D2B #6D9E2B
monochromatic
#11143E #1E236E #2B339E #3C46CA #6C74D7

Accessibility & contrast

On white

10.14
#2B339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2B339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B339E
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B339E#FFFFFF#000000##FFFFFF
##2B339E1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b339e;
/* rgb */ color: rgb(43, 51, 158);
/* oklch */ color: oklch(39.1% 0.170 272.2);
Tailwind
colors: {
  custom: {
    50: '#766bbc',
    500: '#2b339e',
    950: '#000000',
  },
}
SCSS
$custom: #2b339e;
$custom-light: #766bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b339e",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 235.826,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39061,
    "c": 0.17038,
    "h": 272.2
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#2B339E
secondary
#BEB867
accent
#D647E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B339E

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

Preview Lab → · Contrast checker → · Palette generator →

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