#2D3FAB#2D3FAB

#2D3FAB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.173 H 270.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2D3FAB
RGBrgb(45, 63, 171)
HSLhsl(231, 58%, 42%)
HSVhsv(231, 74%, 67%)
CMYKcmyk(73.7%, 63.2%, 0%, 32.9%)
CIE-LABlab(31.93, 31.09, -59.82)
CIE-LCHlch(31.93, 67.42, 297.46°)
OKLaboklab(42.54% -0.0001 -0.1728)
OKLCHoklch(42.54% 0.173 270)
XYZxyz(10.2079, 7.0521, 39.3434)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3FAB #AB992D
analogous
#2D7EAB #2D3FAB #5A2DAB
triadic
#2D3FAB #AB2D3F #3FAB2D
tetradic
#2D3FAB #AB2D7E #AB992D #2DAB5A
square
#2D3FAB #AB2D7E #AB992D #2DAB5A
split-complementary
#2D3FAB #AB5A2D #7EAB2D
monochromatic
#141B4A #202D7B #2D3FAB #475ACE #7785DB

Accessibility & contrast

On white

8.71
#2D3FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2D3FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3FAB
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3FAB#FFFFFF#000000##FFFFFF
##2D3FAB1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d3fab;
/* rgb */ color: rgb(45, 63, 171);
/* oklch */ color: oklch(42.5% 0.173 270.0);
Tailwind
colors: {
  custom: {
    50: '#7874c5',
    500: '#2d3fab',
    950: '#000000',
  },
}
SCSS
$custom: #2d3fab;
$custom-light: #7874c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3fab",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 171
  },
  "hsl": {
    "h": 231.429,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42539,
    "c": 0.17284,
    "h": 270
  },
  "luminance": 0.07053
}

Semantic roles & 50–950 ramp

primary
#2D3FAB
secondary
#C3B771
accent
#CB46E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D3FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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