#2D3FA1#2D3FA1

#2D3FA1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.159 H 270.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2D3FA1
RGBrgb(45, 63, 161)
HSLhsl(231, 56%, 40%)
HSVhsv(231, 72%, 63%)
CMYKcmyk(72%, 60.9%, 0%, 36.9%)
CIE-LABlab(31.08, 27.39, -55.19)
CIE-LCHlch(31.08, 61.62, 296.40°)
OKLaboklab(41.65% 0.0001 -0.1593)
OKLCHoklch(41.65% 0.159 270)
XYZxyz(9.2905, 6.6852, 34.5120)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3FA1 #A18F2D
analogous
#2D79A1 #2D3FA1 #552DA1
triadic
#2D3FA1 #A12D3F #3FA12D
tetradic
#2D3FA1 #A12D79 #A18F2D #2DA155
square
#2D3FA1 #A12D79 #A18F2D #2DA155
split-complementary
#2D3FA1 #A1552D #79A12D
monochromatic
#121A41 #202C71 #2D3FA1 #4156CA #7181D7

Accessibility & contrast

On white

8.99
#2D3FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2D3FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3FA1
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3FA1#FFFFFF#000000##FFFFFF
##2D3FA11.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d3fa1;
/* rgb */ color: rgb(45, 63, 161);
/* oklch */ color: oklch(41.6% 0.159 270.0);
Tailwind
colors: {
  custom: {
    50: '#7673be',
    500: '#2d3fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2d3fa1;
$custom-light: #7673be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3fa1",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 230.69,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4165,
    "c": 0.15926,
    "h": 270
  },
  "luminance": 0.06686
}

Semantic roles & 50–950 ramp

primary
#2D3FA1
secondary
#BFB26B
accent
#C848E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D3FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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