#2B339A#2B339A

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

Color values

HEX#2B339A
RGBrgb(43, 51, 154)
HSLhsl(236, 56%, 39%)
HSVhsv(236, 72%, 60%)
CMYKcmyk(72.1%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.33, 32.44, -57.07)
CIE-LCHlch(27.33, 65.64, 299.61°)
OKLaboklab(38.68% 0.007 -0.1649)
OKLCHoklch(38.68% 0.165 272.4)
XYZxyz(8.0109, 5.2135, 31.1497)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B339A #9A922B
analogous
#2B6A9A #2B339A #5A2B9A
triadic
#2B339A #9A2B33 #339A2B
tetradic
#2B339A #9A2B6A #9A922B #2B9A5A
square
#2B339A #9A2B6A #9A922B #2B9A5A
split-complementary
#2B339A #9A5A2B #6A9A2B
monochromatic
#10133A #1E236A #2B339A #3A44C8 #6A72D5

Accessibility & contrast

On white

10.28
#2B339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B339A
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B339A#FFFFFF#000000##FFFFFF
##2B339A1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b339a;
/* rgb */ color: rgb(43, 51, 154);
/* oklch */ color: oklch(38.7% 0.165 272.4);
Tailwind
colors: {
  custom: {
    50: '#756bb9',
    500: '#2b339a',
    950: '#000000',
  },
}
SCSS
$custom: #2b339a;
$custom-light: #756bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b339a",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 235.676,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38676,
    "c": 0.16505,
    "h": 272.4
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#2B339A
secondary
#BCB665
accent
#D548E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #2B339A

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

Preview Lab → · Contrast checker → · Palette generator →

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