#2B34A5#2B34A5

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

Color values

HEX#2B34A5
RGBrgb(43, 52, 165)
HSLhsl(236, 59%, 41%)
HSVhsv(236, 74%, 65%)
CMYKcmyk(73.9%, 68.5%, 0%, 35.3%)
CIE-LABlab(28.60, 35.75, -61.66)
CIE-LCHlch(28.60, 71.28, 300.10°)
OKLaboklab(39.91% 0.0053 -0.1783)
OKLCHoklch(39.91% 0.178 271.7)
XYZxyz(9.0135, 5.6853, 36.2124)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B34A5 #A59C2B
analogous
#2B71A5 #2B34A5 #5F2BA5
triadic
#2B34A5 #A52B34 #34A52B
tetradic
#2B34A5 #A52B71 #A59C2B #2BA55F
square
#2B34A5 #A52B71 #A59C2B #2BA55F
split-complementary
#2B34A5 #A55F2B #71A52B
monochromatic
#121544 #1E2574 #2B34A5 #404ACD #7178DA

Accessibility & contrast

On white

9.83
#2B34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B34A5
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B34A5#FFFFFF#000000##FFFFFF
##2B34A51.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b34a5;
/* rgb */ color: rgb(43, 52, 165);
/* oklch */ color: oklch(39.9% 0.178 271.7);
Tailwind
colors: {
  custom: {
    50: '#776cc1',
    500: '#2b34a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b34a5;
$custom-light: #776cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b34a5",
  "rgb": {
    "r": 43,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 235.574,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39914,
    "c": 0.17842,
    "h": 271.7
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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