#2D3C7B#2D3C7B

#2D3C7B is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.9% C 0.108 H 270.4°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2D3C7B
RGBrgb(45, 60, 123)
HSLhsl(228, 46%, 33%)
HSVhsv(228, 63%, 48%)
CMYKcmyk(63.4%, 51.2%, 0%, 51.8%)
CIE-LABlab(27.35, 15.20, -37.82)
CIE-LCHlch(27.35, 40.76, 291.89°)
OKLaboklab(37.94% 0.0008 -0.1082)
OKLCHoklch(37.94% 0.108 270.4)
XYZxyz(6.2720, 5.2191, 19.4119)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C7B #7B6C2D
analogous
#2D637B #2D3C7B #452D7B
triadic
#2D3C7B #7B2D3C #3C7B2D
tetradic
#2D3C7B #7B2D63 #7B6C2D #2D7B45
square
#2D3C7B #7B2D63 #7B6C2D #2D7B45
split-complementary
#2D3C7B #7B452D #637B2D
monochromatic
#0C1021 #1D264E #2D3C7B #3D52A8 #5E72C4

Accessibility & contrast

On white

10.27
#2D3C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2D3C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3C7B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C7B#FFFFFF#000000##FFFFFF
##2D3C7B1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B447D
Deuteranopia (green-blind)
#0B3D7A
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d3c7b;
/* rgb */ color: rgb(45, 60, 123);
/* oklch */ color: oklch(37.9% 0.108 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e71a2',
    500: '#2d3c7b',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c7b;
$custom-light: #6e71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c7b",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 123
  },
  "hsl": {
    "h": 228.462,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37935,
    "c": 0.10821,
    "h": 270.4
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#2D3C7B
secondary
#AB9B59
accent
#BD52D6
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2D3C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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