#2D34A4#2D34A4

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

Color values

HEX#2D34A4
RGBrgb(45, 52, 164)
HSLhsl(236, 57%, 41%)
HSVhsv(236, 73%, 64%)
CMYKcmyk(72.6%, 68.3%, 0%, 35.7%)
CIE-LABlab(28.63, 35.62, -61.02)
CIE-LCHlch(28.63, 70.66, 300.27°)
OKLaboklab(39.93% 0.0076 -0.1764)
OKLCHoklch(39.93% 0.177 272.5)
XYZxyz(9.0088, 5.6933, 35.7389)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D34A4 #A49D2D
analogous
#2D6FA4 #2D34A4 #612DA4
triadic
#2D34A4 #A42D34 #34A42D
tetradic
#2D34A4 #A42D6F #A49D2D #2DA461
square
#2D34A4 #A42D6F #A49D2D #2DA461
split-complementary
#2D34A4 #A4612D #6FA42D
monochromatic
#131644 #202574 #2D34A4 #434BCB #7379D9

Accessibility & contrast

On white

9.82
#2D34A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D34A4
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D34A4#FFFFFF#000000##FFFFFF
##2D34A41.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d34a4;
/* rgb */ color: rgb(45, 52, 164);
/* oklch */ color: oklch(39.9% 0.177 272.5);
Tailwind
colors: {
  custom: {
    50: '#786cc0',
    500: '#2d34a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d34a4;
$custom-light: #786cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d34a4",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 236.471,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39931,
    "c": 0.17658,
    "h": 272.5
  },
  "luminance": 0.05694
}

Semantic roles & 50–950 ramp

primary
#2D34A4
secondary
#C0BB6D
accent
#D748E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D34A4

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

Preview Lab → · Contrast checker → · Palette generator →

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