#2D34B2#2D34B2

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

Color values

HEX#2D34B2
RGBrgb(45, 52, 178)
HSLhsl(237, 60%, 44%)
HSVhsv(237, 75%, 70%)
CMYKcmyk(74.7%, 70.8%, 0%, 30.2%)
CIE-LABlab(29.98, 40.53, -67.20)
CIE-LCHlch(29.98, 78.47, 301.10°)
OKLaboklab(41.32% 0.006 -0.1945)
OKLCHoklch(41.32% 0.195 271.8)
XYZxyz(10.3433, 6.2271, 42.7677)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D34B2 #B2AB2D
analogous
#2D76B2 #2D34B2 #682DB2
triadic
#2D34B2 #B22D34 #34B22D
tetradic
#2D34B2 #B22D76 #B2AB2D #2DB268
square
#2D34B2 #B22D76 #B2AB2D #2DB268
split-complementary
#2D34B2 #B2682D #76B22D
monochromatic
#141750 #212681 #2D34B2 #4B52D1 #7C81DE

Accessibility & contrast

On white

9.35
#2D34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2D34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D34B2
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D34B2#FFFFFF#000000##FFFFFF
##2D34B21.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d34b2;
/* rgb */ color: rgb(45, 52, 178);
/* oklch */ color: oklch(41.3% 0.195 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b6cca',
    500: '#2d34b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d34b2;
$custom-light: #7b6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d34b2",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 236.842,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41318,
    "c": 0.19454,
    "h": 271.8
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#2D34B2
secondary
#C6C275
accent
#DB45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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