#2B336A#2B336A

#2B336A is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.095 H 274.1°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#2B336A
RGBrgb(43, 51, 106)
HSLhsl(232, 42%, 29%)
HSVhsv(232, 59%, 42%)
CMYKcmyk(59.4%, 51.9%, 0%, 58.4%)
CIE-LABlab(23.41, 14.70, -33.33)
CIE-LCHlch(23.41, 36.42, 293.80°)
OKLaboklab(34.53% 0.0068 -0.0952)
OKLCHoklch(34.53% 0.095 274.1)
XYZxyz(4.7808, 3.9215, 14.1379)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B336A #6A622B
analogous
#2B536A #2B336A #432B6A
triadic
#2B336A #6A2B33 #336A2B
tetradic
#2B336A #6A2B53 #6A622B #2B6A43
square
#2B336A #6A2B53 #6A622B #2B6A43
split-complementary
#2B336A #6A432B #536A2B
monochromatic
#090A16 #191E3E #2B336A #3D4896 #5562BA

Accessibility & contrast

On white

11.77
#2B336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2B336A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B336A
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B336A#FFFFFF#000000##FFFFFF
##2B336A1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6C
Deuteranopia (green-blind)
#0E3569
Tritanopia (blue-blind)
#073F49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b336a;
/* rgb */ color: rgb(43, 51, 106);
/* oklch */ color: oklch(34.5% 0.095 274.1);
Tailwind
colors: {
  custom: {
    50: '#6a6a95',
    500: '#2b336a',
    950: '#000000',
  },
}
SCSS
$custom: #2b336a;
$custom-light: #6a6a95;
$custom-dark: #000000;
JSON
{
  "hex": "#2b336a",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 232.381,
    "s": 42.282,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34534,
    "c": 0.0954,
    "h": 274.1
  },
  "luminance": 0.03922
}

Semantic roles & 50–950 ramp

primary
#2B336A
secondary
#9C9355
accent
#C256D2
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2B336A

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

Preview Lab → · Contrast checker → · Palette generator →

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