#2D34A5#2D34A5

#2D34A5 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.178 H 272.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2D34A5
RGBrgb(45, 52, 165)
HSLhsl(237, 57%, 41%)
HSVhsv(237, 73%, 65%)
CMYKcmyk(72.7%, 68.5%, 0%, 35.3%)
CIE-LABlab(28.72, 35.98, -61.47)
CIE-LCHlch(28.72, 71.22, 300.34°)
OKLaboklab(40.03% 0.0075 -0.1777)
OKLCHoklch(40.03% 0.178 272.4)
XYZxyz(9.0994, 5.7296, 36.2164)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D34A5 #A59E2D
analogous
#2D70A5 #2D34A5 #622DA5
triadic
#2D34A5 #A52D34 #34A52D
tetradic
#2D34A5 #A52D70 #A59E2D #2DA562
square
#2D34A5 #A52D70 #A59E2D #2DA562
split-complementary
#2D34A5 #A5622D #70A52D
monochromatic
#131645 #202575 #2D34A5 #434BCC #7379D9

Accessibility & contrast

On white

9.79
#2D34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2D34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D34A5
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D34A5#FFFFFF#000000##FFFFFF
##2D34A51.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d34a5;
/* rgb */ color: rgb(45, 52, 165);
/* oklch */ color: oklch(40.0% 0.178 272.4);
Tailwind
colors: {
  custom: {
    50: '#786cc1',
    500: '#2d34a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d34a5;
$custom-light: #786cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d34a5",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 236.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40028,
    "c": 0.17789,
    "h": 272.4
  },
  "luminance": 0.0573
}

Semantic roles & 50–950 ramp

primary
#2D34A5
secondary
#C1BC6D
accent
#D747E0
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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