#2D34A2#2D34A2

#2D34A2 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.174 H 272.6°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2D34A2
RGBrgb(45, 52, 162)
HSLhsl(236, 57%, 41%)
HSVhsv(236, 72%, 64%)
CMYKcmyk(72.2%, 67.9%, 0%, 36.5%)
CIE-LABlab(28.44, 34.91, -60.12)
CIE-LCHlch(28.44, 69.52, 300.14°)
OKLaboklab(39.74% 0.0078 -0.1738)
OKLCHoklch(39.74% 0.174 272.6)
XYZxyz(8.8296, 5.6216, 34.7952)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D34A2 #A29B2D
analogous
#2D6EA2 #2D34A2 #602DA2
triadic
#2D34A2 #A22D34 #34A22D
tetradic
#2D34A2 #A22D6E #A29B2D #2DA260
square
#2D34A2 #A22D6E #A29B2D #2DA260
split-complementary
#2D34A2 #A2602D #6EA22D
monochromatic
#121542 #202572 #2D34A2 #424ACA #7278D8

Accessibility & contrast

On white

9.88
#2D34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2D34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D34A2
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D34A2#FFFFFF#000000##FFFFFF
##2D34A21.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d34a2;
/* rgb */ color: rgb(45, 52, 162);
/* oklch */ color: oklch(39.7% 0.174 272.6);
Tailwind
colors: {
  custom: {
    50: '#776cbf',
    500: '#2d34a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d34a2;
$custom-light: #776cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d34a2",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 236.41,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39737,
    "c": 0.17396,
    "h": 272.6
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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