#2D3F7A#2D3F7A

#2D3F7A is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.103 H 268.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#2D3F7A
RGBrgb(45, 63, 122)
HSLhsl(226, 46%, 33%)
HSVhsv(226, 63%, 48%)
CMYKcmyk(63.1%, 48.4%, 0%, 52.2%)
CIE-LABlab(28.16, 12.76, -35.89)
CIE-LCHlch(28.16, 38.09, 289.57°)
OKLaboklab(38.53% -0.0027 -0.1025)
OKLCHoklch(38.53% 0.103 268.5)
XYZxyz(6.3714, 5.5175, 19.1378)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F7A #7A682D
analogous
#2D657A #2D3F7A #412D7A
triadic
#2D3F7A #7A2D3F #3F7A2D
tetradic
#2D3F7A #7A2D65 #7A682D #2D7A41
square
#2D3F7A #7A2D65 #7A682D #2D7A41
split-complementary
#2D3F7A #7A412D #657A2D
monochromatic
#0C1121 #1D284D #2D3F7A #3D56A7 #5E76C4

Accessibility & contrast

On white

9.98
#2D3F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2D3F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F7A
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F7A#FFFFFF#000000##FFFFFF
##2D3F7A1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467C
Deuteranopia (green-blind)
#163F79
Tritanopia (blue-blind)
#004C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d3f7a;
/* rgb */ color: rgb(45, 63, 122);
/* oklch */ color: oklch(38.5% 0.103 268.5);
Tailwind
colors: {
  custom: {
    50: '#6e73a1',
    500: '#2d3f7a',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f7a;
$custom-light: #6e73a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f7a",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 122
  },
  "hsl": {
    "h": 225.974,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38531,
    "c": 0.10253,
    "h": 268.5
  },
  "luminance": 0.05518
}

Semantic roles & 50–950 ramp

primary
#2D3F7A
secondary
#AA9759
accent
#B752D6
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #2D3F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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