#2D3FAC#2D3FAC

#2D3FAC is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.174 H 269.9°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2D3FAC
RGBrgb(45, 63, 172)
HSLhsl(231, 59%, 43%)
HSVhsv(231, 74%, 67%)
CMYKcmyk(73.8%, 63.4%, 0%, 32.5%)
CIE-LABlab(32.01, 31.46, -60.28)
CIE-LCHlch(32.01, 67.99, 297.56°)
OKLaboklab(42.63% -0.0002 -0.1742)
OKLCHoklch(42.63% 0.174 269.9)
XYZxyz(10.3035, 7.0904, 39.8473)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3FAC #AC9A2D
analogous
#2D7EAC #2D3FAC #5A2DAC
triadic
#2D3FAC #AC2D3F #3FAC2D
tetradic
#2D3FAC #AC2D7E #AC9A2D #2DAC5A
square
#2D3FAC #AC2D7E #AC9A2D #2DAC5A
split-complementary
#2D3FAC #AC5A2D #7EAC2D
monochromatic
#141B4B #202D7B #2D3FAC #475ACF #7886DC

Accessibility & contrast

On white

8.68
#2D3FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2D3FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3FAC
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3FAC#FFFFFF#000000##FFFFFF
##2D3FAC1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d3fac;
/* rgb */ color: rgb(45, 63, 172);
/* oklch */ color: oklch(42.6% 0.174 269.9);
Tailwind
colors: {
  custom: {
    50: '#7974c6',
    500: '#2d3fac',
    950: '#000000',
  },
}
SCSS
$custom: #2d3fac;
$custom-light: #7974c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3fac",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 231.496,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42629,
    "c": 0.17417,
    "h": 269.9
  },
  "luminance": 0.07091
}

Semantic roles & 50–950 ramp

primary
#2D3FAC
secondary
#C4B871
accent
#CC46E2
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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