#2D3D7C#2D3D7C

#2D3D7C is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.2% C 0.108 H 269.9°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2D3D7C
RGBrgb(45, 61, 124)
HSLhsl(228, 47%, 33%)
HSVhsv(228, 64%, 49%)
CMYKcmyk(63.7%, 50.8%, 0%, 51.4%)
CIE-LABlab(27.71, 14.88, -37.87)
CIE-LCHlch(27.71, 40.69, 291.45°)
OKLaboklab(38.23% -0.0001 -0.1083)
OKLCHoklch(38.23% 0.108 269.9)
XYZxyz(6.3878, 5.3501, 19.7609)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3D7C #7C6C2D
analogous
#2D647C #2D3D7C #442D7C
triadic
#2D3D7C #7C2D3D #3D7C2D
tetradic
#2D3D7C #7C2D64 #7C6C2D #2D7C44
square
#2D3D7C #7C2D64 #7C6C2D #2D7C44
split-complementary
#2D3D7C #7C442D #647C2D
monochromatic
#0C1122 #1D274F #2D3D7C #3D53A9 #5F73C5

Accessibility & contrast

On white

10.14
#2D3D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2D3D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3D7C
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3D7C#FFFFFF#000000##FFFFFF
##2D3D7C1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C457E
Deuteranopia (green-blind)
#0D3E7B
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d3d7c;
/* rgb */ color: rgb(45, 61, 124);
/* oklch */ color: oklch(38.2% 0.108 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e72a2',
    500: '#2d3d7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d3d7c;
$custom-light: #6e72a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3d7c",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 124
  },
  "hsl": {
    "h": 227.848,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3823,
    "c": 0.10835,
    "h": 269.9
  },
  "luminance": 0.05351
}

Semantic roles & 50–950 ramp

primary
#2D3D7C
secondary
#AB9B5A
accent
#BB51D6
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2D3D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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