#2D3096#2D3096

#2D3096 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.163 H 274.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2D3096
RGBrgb(45, 48, 150)
HSLhsl(238, 54%, 38%)
HSVhsv(238, 70%, 59%)
CMYKcmyk(70%, 68%, 0%, 41.2%)
CIE-LABlab(26.37, 33.18, -56.20)
CIE-LCHlch(26.37, 65.26, 300.56°)
OKLaboklab(37.89% 0.0118 -0.1623)
OKLCHoklch(37.89% 0.163 274.2)
XYZxyz(7.6423, 4.8731, 29.3861)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3096 #96932D
analogous
#2D6496 #2D3096 #5E2D96
triadic
#2D3096 #962D30 #30962D
tetradic
#2D3096 #962D64 #96932D #2D965E
square
#2D3096 #962D64 #96932D #2D965E
split-complementary
#2D3096 #965E2D #64962D
monochromatic
#111238 #1F2167 #2D3096 #3C40C4 #6B6ED3

Accessibility & contrast

On white

10.63
#2D3096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D3096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3096
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3096#FFFFFF#000000##FFFFFF
##2D30961.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d3096;
/* rgb */ color: rgb(45, 48, 150);
/* oklch */ color: oklch(37.9% 0.163 274.2);
Tailwind
colors: {
  custom: {
    50: '#7569b6',
    500: '#2d3096',
    950: '#000000',
  },
}
SCSS
$custom: #2d3096;
$custom-light: #7569b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3096",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 150
  },
  "hsl": {
    "h": 238.286,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37894,
    "c": 0.16274,
    "h": 274.2
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#2D3096
secondary
#B9B765
accent
#D94BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D3096

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

Preview Lab → · Contrast checker → · Palette generator →

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