#2B34AB#2B34AB

#2B34AB is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.186 H 271.4°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#2B34AB
RGBrgb(43, 52, 171)
HSLhsl(236, 60%, 42%)
HSVhsv(236, 75%, 67%)
CMYKcmyk(74.9%, 69.6%, 0%, 32.9%)
CIE-LABlab(29.18, 37.88, -64.33)
CIE-LCHlch(29.18, 74.65, 300.49°)
OKLaboklab(40.51% 0.0046 -0.1861)
OKLCHoklch(40.51% 0.186 271.4)
XYZxyz(9.5724, 5.9088, 39.1562)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B34AB #ABA22B
analogous
#2B74AB #2B34AB #622BAB
triadic
#2B34AB #AB2B34 #34AB2B
tetradic
#2B34AB #AB2B74 #ABA22B #2BAB62
square
#2B34AB #AB2B74 #ABA22B #2BAB62
split-complementary
#2B34AB #AB622B #74AB2B
monochromatic
#121649 #1F257A #2B34AB #434DD0 #747CDC

Accessibility & contrast

On white

9.62
#2B34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2B34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B34AB
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B34AB#FFFFFF#000000##FFFFFF
##2B34AB1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#00556B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b34ab;
/* rgb */ color: rgb(43, 52, 171);
/* oklch */ color: oklch(40.5% 0.186 271.4);
Tailwind
colors: {
  custom: {
    50: '#796cc5',
    500: '#2b34ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b34ab;
$custom-light: #796cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b34ab",
  "rgb": {
    "r": 43,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 235.781,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40507,
    "c": 0.18618,
    "h": 271.4
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#2B34AB
secondary
#C4BE6E
accent
#D845E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2B34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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