#2D3F8E#2D3F8E

#2D3F8E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.132 H 269.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2D3F8E
RGBrgb(45, 63, 142)
HSLhsl(229, 52%, 37%)
HSVhsv(229, 68%, 56%)
CMYKcmyk(68.3%, 55.6%, 0%, 44.3%)
CIE-LABlab(29.58, 20.28, -46.05)
CIE-LCHlch(29.58, 50.32, 293.76°)
OKLaboklab(40.06% -0.0005 -0.1324)
OKLCHoklch(40.06% 0.132 269.8)
XYZxyz(7.7405, 6.0652, 26.3487)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F8E #8E7C2D
analogous
#2D708E #2D3F8E #4C2D8E
triadic
#2D3F8E #8E2D3F #3F8E2D
tetradic
#2D3F8E #8E2D70 #8E7C2D #2D8E4C
square
#2D3F8E #8E2D70 #8E7C2D #2D8E4C
split-complementary
#2D3F8E #8E4C2D #708E2D
monochromatic
#101631 #1E2A60 #2D3F8E #3C54BC #677ACF

Accessibility & contrast

On white

9.49
#2D3F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3F8E
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F8E#FFFFFF#000000##FFFFFF
##2D3F8E1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d3f8e;
/* rgb */ color: rgb(45, 63, 142);
/* oklch */ color: oklch(40.1% 0.132 269.8);
Tailwind
colors: {
  custom: {
    50: '#7273b0',
    500: '#2d3f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f8e;
$custom-light: #7273b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f8e",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 228.866,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40055,
    "c": 0.13239,
    "h": 269.8
  },
  "luminance": 0.06066
}

Semantic roles & 50–950 ramp

primary
#2D3F8E
secondary
#B5A661
accent
#C14CDB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2D3F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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