#2B34A8#2B34A8

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

Color values

HEX#2B34A8
RGBrgb(43, 52, 168)
HSLhsl(236, 59%, 41%)
HSVhsv(236, 74%, 66%)
CMYKcmyk(74.4%, 69%, 0%, 34.1%)
CIE-LABlab(28.89, 36.82, -63.00)
CIE-LCHlch(28.89, 72.97, 300.30°)
OKLaboklab(40.21% 0.005 -0.1822)
OKLCHoklch(40.21% 0.182 271.6)
XYZxyz(9.2897, 5.7958, 37.6673)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B34A8 #A89F2B
analogous
#2B73A8 #2B34A8 #612BA8
triadic
#2B34A8 #A82B34 #34A82B
tetradic
#2B34A8 #A82B73 #A89F2B #2BA861
square
#2B34A8 #A82B73 #A89F2B #2BA861
split-complementary
#2B34A8 #A8612B #73A82B
monochromatic
#121647 #1F2577 #2B34A8 #424CCF #727ADB

Accessibility & contrast

On white

9.72
#2B34A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2B34A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B34A8
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B34A8#FFFFFF#000000##FFFFFF
##2B34A81.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b34a8;
/* rgb */ color: rgb(43, 52, 168);
/* oklch */ color: oklch(40.2% 0.182 271.6);
Tailwind
colors: {
  custom: {
    50: '#786cc3',
    500: '#2b34a8',
    950: '#000000',
  },
}
SCSS
$custom: #2b34a8;
$custom-light: #786cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b34a8",
  "rgb": {
    "r": 43,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 235.68,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40209,
    "c": 0.18232,
    "h": 271.6
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#2B34A8
secondary
#C2BC6C
accent
#D745E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2B34A8

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

Preview Lab → · Contrast checker → · Palette generator →

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