#2D3F8D#2D3F8D

#2D3F8D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.131 H 269.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2D3F8D
RGBrgb(45, 63, 141)
HSLhsl(229, 52%, 36%)
HSVhsv(229, 68%, 55%)
CMYKcmyk(68.1%, 55.3%, 0%, 44.7%)
CIE-LABlab(29.50, 19.90, -45.56)
CIE-LCHlch(29.50, 49.71, 293.60°)
OKLaboklab(39.98% -0.0005 -0.1309)
OKLCHoklch(39.98% 0.131 269.8)
XYZxyz(7.6658, 6.0353, 25.9551)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F8D #8D7B2D
analogous
#2D6F8D #2D3F8D #4B2D8D
triadic
#2D3F8D #8D2D3F #3F8D2D
tetradic
#2D3F8D #8D2D6F #8D7B2D #2D8D4B
square
#2D3F8D #8D2D6F #8D7B2D #2D8D4B
split-complementary
#2D3F8D #8D4B2D #6F8D2D
monochromatic
#0F1630 #1E2A5F #2D3F8D #3C54BB #667ACE

Accessibility & contrast

On white

9.51
#2D3F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2D3F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F8D
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F8D#FFFFFF#000000##FFFFFF
##2D3F8D1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064A90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d3f8d;
/* rgb */ color: rgb(45, 63, 141);
/* oklch */ color: oklch(40.0% 0.131 269.8);
Tailwind
colors: {
  custom: {
    50: '#7273af',
    500: '#2d3f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f8d;
$custom-light: #7273af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f8d",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 228.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39975,
    "c": 0.13093,
    "h": 269.8
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#2D3F8D
secondary
#B5A561
accent
#C04DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2D3F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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