#2D3A8B#2D3A8B

#2D3A8B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.135 H 271.7°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2D3A8B
RGBrgb(45, 58, 139)
HSLhsl(232, 51%, 36%)
HSVhsv(232, 68%, 55%)
CMYKcmyk(67.6%, 58.3%, 0%, 45.5%)
CIE-LABlab(27.97, 22.55, -46.80)
CIE-LCHlch(27.97, 51.95, 295.72°)
OKLaboklab(38.78% 0.004 -0.1346)
OKLCHoklch(38.78% 0.135 271.7)
XYZxyz(7.2539, 5.4474, 25.0903)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3A8B #8B7E2D
analogous
#2D698B #2D3A8B #4F2D8B
triadic
#2D3A8B #8B2D3A #3A8B2D
tetradic
#2D3A8B #8B2D69 #8B7E2D #2D8B4F
square
#2D3A8B #8B2D69 #8B7E2D #2D8B4F
split-complementary
#2D3A8B #8B4F2D #698B2D
monochromatic
#0F132F #1E275D #2D3A8B #3C4DB9 #6574CD

Accessibility & contrast

On white

10.05
#2D3A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2D3A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3A8B
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3A8B#FFFFFF#000000##FFFFFF
##2D3A8B1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d3a8b;
/* rgb */ color: rgb(45, 58, 139);
/* oklch */ color: oklch(38.8% 0.135 271.7);
Tailwind
colors: {
  custom: {
    50: '#7270ae',
    500: '#2d3a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d3a8b;
$custom-light: #7270ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3a8b",
  "rgb": {
    "r": 45,
    "g": 58,
    "b": 139
  },
  "hsl": {
    "h": 231.702,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38781,
    "c": 0.13471,
    "h": 271.7
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#2D3A8B
secondary
#B4A860
accent
#C74DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D3A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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