#2D3DAB#2D3DAB

#2D3DAB is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.175 H 270.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2D3DAB
RGBrgb(45, 61, 171)
HSLhsl(232, 58%, 42%)
HSVhsv(232, 74%, 67%)
CMYKcmyk(73.7%, 64.3%, 0%, 32.9%)
CIE-LABlab(31.43, 32.39, -60.64)
CIE-LCHlch(31.43, 68.75, 298.11°)
OKLaboklab(42.17% 0.0012 -0.1752)
OKLCHoklch(42.17% 0.175 270.4)
XYZxyz(10.0991, 6.8346, 39.3071)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3DAB #AB9B2D
analogous
#2D7CAB #2D3DAB #5C2DAB
triadic
#2D3DAB #AB2D3D #3DAB2D
tetradic
#2D3DAB #AB2D7C #AB9B2D #2DAB5C
square
#2D3DAB #AB2D7C #AB9B2D #2DAB5C
split-complementary
#2D3DAB #AB5C2D #7CAB2D
monochromatic
#141A4A #202C7B #2D3DAB #4758CE #7784DB

Accessibility & contrast

On white

8.87
#2D3DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2D3DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3DAB
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3DAB#FFFFFF#000000##FFFFFF
##2D3DAB1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d3dab;
/* rgb */ color: rgb(45, 61, 171);
/* oklch */ color: oklch(42.2% 0.175 270.4);
Tailwind
colors: {
  custom: {
    50: '#7972c5',
    500: '#2d3dab',
    950: '#000000',
  },
}
SCSS
$custom: #2d3dab;
$custom-light: #7972c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3dab",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 232.381,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42172,
    "c": 0.17524,
    "h": 270.4
  },
  "luminance": 0.06836
}

Semantic roles & 50–950 ramp

primary
#2D3DAB
secondary
#C3B971
accent
#CE46E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D3DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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