#2D34AC#2D34AC

#2D34AC is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.187 H 272.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2D34AC
RGBrgb(45, 52, 172)
HSLhsl(237, 59%, 43%)
HSVhsv(237, 74%, 67%)
CMYKcmyk(73.8%, 69.8%, 0%, 32.5%)
CIE-LABlab(29.39, 38.44, -64.58)
CIE-LCHlch(29.39, 75.15, 300.76°)
OKLaboklab(40.72% 0.0067 -0.1868)
OKLCHoklch(40.72% 0.187 272.1)
XYZxyz(9.7541, 5.9914, 39.6641)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D34AC #ACA52D
analogous
#2D73AC #2D34AC #662DAC
triadic
#2D34AC #AC2D34 #34AC2D
tetradic
#2D34AC #AC2D73 #ACA52D #2DAC66
square
#2D34AC #AC2D73 #ACA52D #2DAC66
split-complementary
#2D34AC #AC662D #73AC2D
monochromatic
#14174B #20257B #2D34AC #474FCF #787DDC

Accessibility & contrast

On white

9.55
#2D34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2D34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D34AC
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D34AC#FFFFFF#000000##FFFFFF
##2D34AC1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#003FAA
Tritanopia (blue-blind)
#00556C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d34ac;
/* rgb */ color: rgb(45, 52, 172);
/* oklch */ color: oklch(40.7% 0.187 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a6cc6',
    500: '#2d34ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d34ac;
$custom-light: #7a6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d34ac",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 236.693,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40718,
    "c": 0.18693,
    "h": 272.1
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#2D34AC
secondary
#C4BF71
accent
#D946E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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