#2D3F8A#2D3F8A

#2D3F8A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.127 H 269.7°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#2D3F8A
RGBrgb(45, 63, 138)
HSLhsl(228, 51%, 36%)
HSVhsv(228, 67%, 54%)
CMYKcmyk(67.4%, 54.3%, 0%, 45.9%)
CIE-LABlab(29.28, 18.77, -44.07)
CIE-LCHlch(29.28, 47.90, 293.07°)
OKLaboklab(39.74% -0.0008 -0.1265)
OKLCHoklch(39.74% 0.127 269.7)
XYZxyz(7.4456, 5.9472, 24.7954)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F8A #8A782D
analogous
#2D6D8A #2D3F8A #492D8A
triadic
#2D3F8A #8A2D3F #3F8A2D
tetradic
#2D3F8A #8A2D6D #8A782D #2D8A49
square
#2D3F8A #8A2D6D #8A782D #2D8A49
split-complementary
#2D3F8A #8A492D #6D8A2D
monochromatic
#0F152E #1E2A5C #2D3F8A #3C54B8 #6579CD

Accessibility & contrast

On white

9.59
#2D3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2D3F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F8A
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F8A#FFFFFF#000000##FFFFFF
##2D3F8A1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E498D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d3f8a;
/* rgb */ color: rgb(45, 63, 138);
/* oklch */ color: oklch(39.7% 0.127 269.7);
Tailwind
colors: {
  custom: {
    50: '#7173ad',
    500: '#2d3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f8a;
$custom-light: #7173ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f8a",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 228.387,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39737,
    "c": 0.12654,
    "h": 269.7
  },
  "luminance": 0.05948
}

Semantic roles & 50–950 ramp

primary
#2D3F8A
secondary
#B3A360
accent
#BF4DDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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