#2D34B7#2D34B7

#2D34B7 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.8% C 0.201 H 271.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2D34B7
RGBrgb(45, 52, 183)
HSLhsl(237, 61%, 45%)
HSVhsv(237, 75%, 72%)
CMYKcmyk(75.4%, 71.6%, 0%, 28.2%)
CIE-LABlab(30.48, 42.25, -69.35)
CIE-LCHlch(30.48, 81.21, 301.35°)
OKLaboklab(41.83% 0.0053 -0.2007)
OKLCHoklch(41.83% 0.201 271.5)
XYZxyz(10.8545, 6.4316, 45.4599)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D34B7 #B7B02D
analogous
#2D79B7 #2D34B7 #6B2DB7
triadic
#2D34B7 #B72D34 #34B72D
tetradic
#2D34B7 #B72D79 #B7B02D #2DB76B
square
#2D34B7 #B72D79 #B7B02D #2DB76B
split-complementary
#2D34B7 #B76B2D #79B72D
monochromatic
#151855 #212686 #2D34B7 #4E55D3 #7F84DF

Accessibility & contrast

On white

9.18
#2D34B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2D34B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D34B7
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D34B7#FFFFFF#000000##FFFFFF
##2D34B71.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0041B5
Tritanopia (blue-blind)
#005972
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d34b7;
/* rgb */ color: rgb(45, 52, 183);
/* oklch */ color: oklch(41.8% 0.201 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c6cce',
    500: '#2d34b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d34b7;
$custom-light: #7c6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d34b7",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 236.957,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41825,
    "c": 0.20079,
    "h": 271.5
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

primary
#2D34B7
secondary
#C8C478
accent
#DC44E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2D34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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