#2B34A7#2B34A7

#2B34A7 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.181 H 271.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2B34A7
RGBrgb(43, 52, 167)
HSLhsl(236, 59%, 41%)
HSVhsv(236, 74%, 65%)
CMYKcmyk(74.3%, 68.9%, 0%, 34.5%)
CIE-LABlab(28.80, 36.46, -62.56)
CIE-LCHlch(28.80, 72.41, 300.24°)
OKLaboklab(40.11% 0.0051 -0.1809)
OKLCHoklch(40.11% 0.181 271.6)
XYZxyz(9.1969, 5.7586, 37.1786)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B34A7 #A79E2B
analogous
#2B72A7 #2B34A7 #602BA7
triadic
#2B34A7 #A72B34 #34A72B
tetradic
#2B34A7 #A72B72 #A79E2B #2BA760
square
#2B34A7 #A72B72 #A79E2B #2BA760
split-complementary
#2B34A7 #A7602B #72A72B
monochromatic
#121646 #1E2576 #2B34A7 #414BCE #7279DB

Accessibility & contrast

On white

9.76
#2B34A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2B34A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B34A7
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B34A7#FFFFFF#000000##FFFFFF
##2B34A71.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b34a7;
/* rgb */ color: rgb(43, 52, 167);
/* oklch */ color: oklch(40.1% 0.181 271.6);
Tailwind
colors: {
  custom: {
    50: '#786cc2',
    500: '#2b34a7',
    950: '#000000',
  },
}
SCSS
$custom: #2b34a7;
$custom-light: #786cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b34a7",
  "rgb": {
    "r": 43,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 235.645,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4011,
    "c": 0.18102,
    "h": 271.6
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#2B34A7
secondary
#C2BC6C
accent
#D746E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2B34A7

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

Preview Lab → · Contrast checker → · Palette generator →

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