#2B34A3#2B34A3

#2B34A3 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.176 H 271.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2B34A3
RGBrgb(43, 52, 163)
HSLhsl(236, 58%, 40%)
HSVhsv(236, 74%, 64%)
CMYKcmyk(73.6%, 68.1%, 0%, 36.1%)
CIE-LABlab(28.41, 35.04, -60.77)
CIE-LCHlch(28.41, 70.14, 299.97°)
OKLaboklab(39.72% 0.0055 -0.1757)
OKLCHoklch(39.72% 0.176 271.8)
XYZxyz(8.8329, 5.6130, 35.2611)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B34A3 #A39A2B
analogous
#2B70A3 #2B34A3 #5E2BA3
triadic
#2B34A3 #A32B34 #34A32B
tetradic
#2B34A3 #A32B70 #A39A2B #2BA35E
square
#2B34A3 #A32B70 #A39A2B #2BA35E
split-complementary
#2B34A3 #A35E2B #70A32B
monochromatic
#111542 #1E2573 #2B34A3 #3F49CC #6F77D9

Accessibility & contrast

On white

9.89
#2B34A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2B34A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B34A3
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B34A3#FFFFFF#000000##FFFFFF
##2B34A31.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#003DA1
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b34a3;
/* rgb */ color: rgb(43, 52, 163);
/* oklch */ color: oklch(39.7% 0.176 271.8);
Tailwind
colors: {
  custom: {
    50: '#776cbf',
    500: '#2b34a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b34a3;
$custom-light: #776cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b34a3",
  "rgb": {
    "r": 43,
    "g": 52,
    "b": 163
  },
  "hsl": {
    "h": 235.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39718,
    "c": 0.17581,
    "h": 271.8
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#2B34A3
secondary
#C0BA6A
accent
#D646E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2B34A3

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

Preview Lab → · Contrast checker → · Palette generator →

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