#2D3B9F#2D3B9F

#2D3B9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.162 H 271.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#2D3B9F
RGBrgb(45, 59, 159)
HSLhsl(233, 56%, 40%)
HSVhsv(233, 72%, 62%)
CMYKcmyk(71.7%, 62.9%, 0%, 37.6%)
CIE-LABlab(29.88, 29.30, -55.94)
CIE-LCHlch(29.88, 63.15, 297.64°)
OKLaboklab(40.71% 0.0031 -0.1615)
OKLCHoklch(40.71% 0.162 271.1)
XYZxyz(8.9020, 6.1881, 33.5194)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3B9F #9F912D
analogous
#2D749F #2D3B9F #582D9F
triadic
#2D3B9F #9F2D3B #3B9F2D
tetradic
#2D3B9F #9F2D74 #9F912D #2D9F58
square
#2D3B9F #9F2D74 #9F912D #2D9F58
split-complementary
#2D3B9F #9F582D #749F2D
monochromatic
#121840 #20296F #2D3B9F #4051C9 #707CD6

Accessibility & contrast

On white

9.38
#2D3B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2D3B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3B9F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3B9F#FFFFFF#000000##FFFFFF
##2D3B9F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d3b9f;
/* rgb */ color: rgb(45, 59, 159);
/* oklch */ color: oklch(40.7% 0.162 271.1);
Tailwind
colors: {
  custom: {
    50: '#7671bc',
    500: '#2d3b9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d3b9f;
$custom-light: #7671bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3b9f",
  "rgb": {
    "r": 45,
    "g": 59,
    "b": 159
  },
  "hsl": {
    "h": 232.632,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.16151,
    "h": 271.1
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

primary
#2D3B9F
secondary
#BEB46A
accent
#CD49DF
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D3B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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