#2D34A8#2D34A8

#2D34A8 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.3% C 0.182 H 272.3°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2D34A8
RGBrgb(45, 52, 168)
HSLhsl(237, 58%, 42%)
HSVhsv(237, 73%, 66%)
CMYKcmyk(73.2%, 69%, 0%, 34.1%)
CIE-LABlab(29.01, 37.04, -62.81)
CIE-LCHlch(29.01, 72.92, 300.53°)
OKLaboklab(40.32% 0.0072 -0.1816)
OKLCHoklch(40.32% 0.182 272.3)
XYZxyz(9.3757, 5.8401, 37.6713)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D34A8 #A8A12D
analogous
#2D72A8 #2D34A8 #642DA8
triadic
#2D34A8 #A82D34 #34A82D
tetradic
#2D34A8 #A82D72 #A8A12D #2DA864
square
#2D34A8 #A82D72 #A8A12D #2DA864
split-complementary
#2D34A8 #A8642D #72A82D
monochromatic
#131647 #202578 #2D34A8 #454DCD #757BDA

Accessibility & contrast

On white

9.69
#2D34A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2D34A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D34A8
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D34A8#FFFFFF#000000##FFFFFF
##2D34A81.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d34a8;
/* rgb */ color: rgb(45, 52, 168);
/* oklch */ color: oklch(40.3% 0.182 272.3);
Tailwind
colors: {
  custom: {
    50: '#796cc3',
    500: '#2d34a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d34a8;
$custom-light: #796cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d34a8",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 236.585,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40322,
    "c": 0.18178,
    "h": 272.3
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#2D34A8
secondary
#C2BD6F
accent
#D847E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2D34A8

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

Preview Lab → · Contrast checker → · Palette generator →

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