#2B34B2#2B34B2

#2B34B2 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.2% C 0.195 H 271.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2B34B2
RGBrgb(43, 52, 178)
HSLhsl(236, 61%, 43%)
HSVhsv(236, 76%, 70%)
CMYKcmyk(75.8%, 70.8%, 0%, 30.2%)
CIE-LABlab(29.87, 40.34, -67.38)
CIE-LCHlch(29.87, 78.53, 300.91°)
OKLaboklab(41.21% 0.0038 -0.195)
OKLCHoklch(41.21% 0.195 271.1)
XYZxyz(10.2574, 6.1828, 42.7637)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B34B2 #B2A92B
analogous
#2B77B2 #2B34B2 #652BB2
triadic
#2B34B2 #B22B34 #34B22B
tetradic
#2B34B2 #B22B77 #B2A92B #2BB265
square
#2B34B2 #B22B77 #B2A92B #2BB265
split-complementary
#2B34B2 #B2652B #77B22B
monochromatic
#13174F #1F2681 #2B34B2 #4851D3 #7980DF

Accessibility & contrast

On white

9.39
#2B34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2B34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B34B2
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B34B2#FFFFFF#000000##FFFFFF
##2B34B21.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0040B0
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b34b2;
/* rgb */ color: rgb(43, 52, 178);
/* oklch */ color: oklch(41.2% 0.195 271.1);
Tailwind
colors: {
  custom: {
    50: '#7a6cca',
    500: '#2b34b2',
    950: '#000000',
  },
}
SCSS
$custom: #2b34b2;
$custom-light: #7a6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b34b2",
  "rgb": {
    "r": 43,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 236,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4121,
    "c": 0.19507,
    "h": 271.1
  },
  "luminance": 0.06184
}

Semantic roles & 50–950 ramp

primary
#2B34B2
secondary
#C7C172
accent
#D944E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2B34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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