#2B339F#2B339F

#2B339F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.172 H 272.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2B339F
RGBrgb(43, 51, 159)
HSLhsl(236, 57%, 40%)
HSVhsv(236, 73%, 62%)
CMYKcmyk(73%, 67.9%, 0%, 37.6%)
CIE-LABlab(27.80, 34.24, -59.35)
CIE-LCHlch(27.80, 68.52, 299.98°)
OKLaboklab(39.16% 0.0065 -0.1716)
OKLCHoklch(39.16% 0.172 272.2)
XYZxyz(8.4360, 5.3836, 33.3887)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B339F #9F972B
analogous
#2B6D9F #2B339F #5D2B9F
triadic
#2B339F #9F2B33 #339F2B
tetradic
#2B339F #9F2B6D #9F972B #2B9F5D
square
#2B339F #9F2B6D #9F972B #2B9F5D
split-complementary
#2B339F #9F5D2B #6D9F2B
monochromatic
#11143F #1E246F #2B339F #3D47CA #6D74D7

Accessibility & contrast

On white

10.11
#2B339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2B339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B339F
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B339F#FFFFFF#000000##FFFFFF
##2B339F1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b339f;
/* rgb */ color: rgb(43, 51, 159);
/* oklch */ color: oklch(39.2% 0.172 272.2);
Tailwind
colors: {
  custom: {
    50: '#766bbc',
    500: '#2b339f',
    950: '#000000',
  },
}
SCSS
$custom: #2b339f;
$custom-light: #766bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b339f",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 235.862,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39157,
    "c": 0.1717,
    "h": 272.2
  },
  "luminance": 0.05384
}

Semantic roles & 50–950 ramp

primary
#2B339F
secondary
#BEB867
accent
#D647E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B339F

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

Preview Lab → · Contrast checker → · Palette generator →

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