#2B34A6#2B34A6

#2B34A6 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.180 H 271.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2B34A6
RGBrgb(43, 52, 166)
HSLhsl(236, 59%, 41%)
HSVhsv(236, 74%, 65%)
CMYKcmyk(74.1%, 68.7%, 0%, 34.9%)
CIE-LABlab(28.70, 36.11, -62.11)
CIE-LCHlch(28.70, 71.84, 300.17°)
OKLaboklab(40.01% 0.0052 -0.1796)
OKLCHoklch(40.01% 0.18 271.7)
XYZxyz(9.1049, 5.7218, 36.6936)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B34A6 #A69D2B
analogous
#2B71A6 #2B34A6 #5F2BA6
triadic
#2B34A6 #A62B34 #34A62B
tetradic
#2B34A6 #A62B71 #A69D2B #2BA65F
square
#2B34A6 #A62B71 #A69D2B #2BA65F
split-complementary
#2B34A6 #A65F2B #71A62B
monochromatic
#121645 #1E2575 #2B34A6 #414BCE #7179DA

Accessibility & contrast

On white

9.79
#2B34A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2B34A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B34A6
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B34A6#FFFFFF#000000##FFFFFF
##2B34A61.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b34a6;
/* rgb */ color: rgb(43, 52, 166);
/* oklch */ color: oklch(40.0% 0.180 271.7);
Tailwind
colors: {
  custom: {
    50: '#776cc1',
    500: '#2b34a6',
    950: '#000000',
  },
}
SCSS
$custom: #2b34a6;
$custom-light: #776cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b34a6",
  "rgb": {
    "r": 43,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 235.61,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40012,
    "c": 0.17972,
    "h": 271.7
  },
  "luminance": 0.05723
}

Semantic roles & 50–950 ramp

primary
#2B34A6
secondary
#C1BB6B
accent
#D746E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2B34A6

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

Preview Lab → · Contrast checker → · Palette generator →

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