#2D34B3#2D34B3

#2D34B3 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.4% C 0.196 H 271.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#2D34B3
RGBrgb(45, 52, 179)
HSLhsl(237, 60%, 44%)
HSVhsv(237, 75%, 70%)
CMYKcmyk(74.9%, 70.9%, 0%, 29.8%)
CIE-LABlab(30.08, 40.88, -67.63)
CIE-LCHlch(30.08, 79.02, 301.15°)
OKLaboklab(41.42% 0.0058 -0.1957)
OKLCHoklch(41.42% 0.196 271.7)
XYZxyz(10.4441, 6.2674, 43.2984)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D34B3 #B3AC2D
analogous
#2D77B3 #2D34B3 #692DB3
triadic
#2D34B3 #B32D34 #34B32D
tetradic
#2D34B3 #B32D77 #B3AC2D #2DB369
square
#2D34B3 #B32D77 #B3AC2D #2DB369
split-complementary
#2D34B3 #B3692D #77B32D
monochromatic
#141851 #212682 #2D34B3 #4B52D2 #7C81DE

Accessibility & contrast

On white

9.32
#2D34B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2D34B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D34B3
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D34B3#FFFFFF#000000##FFFFFF
##2D34B31.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d34b3;
/* rgb */ color: rgb(45, 52, 179);
/* oklch */ color: oklch(41.4% 0.196 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b6ccb',
    500: '#2d34b3',
    950: '#000000',
  },
}
SCSS
$custom: #2d34b3;
$custom-light: #7b6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d34b3",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 236.866,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41419,
    "c": 0.1958,
    "h": 271.7
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#2D34B3
secondary
#C7C275
accent
#DB45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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