#2D3D98#2D3D98

#2D3D98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.149 H 270.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2D3D98
RGBrgb(45, 61, 152)
HSLhsl(231, 54%, 39%)
HSVhsv(231, 70%, 60%)
CMYKcmyk(70.4%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.82, 25.38, -51.79)
CIE-LCHlch(29.82, 57.67, 296.10°)
OKLaboklab(40.48% 0.0016 -0.1493)
OKLCHoklch(40.48% 0.149 270.6)
XYZxyz(8.4165, 6.1616, 30.4454)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3D98 #98882D
analogous
#2D7298 #2D3D98 #522D98
triadic
#2D3D98 #982D3D #3D982D
tetradic
#2D3D98 #982D72 #98882D #2D9852
square
#2D3D98 #982D72 #98882D #2D9852
split-complementary
#2D3D98 #98522D #72982D
monochromatic
#11173A #1F2A69 #2D3D98 #3D51C5 #6C7BD3

Accessibility & contrast

On white

9.41
#2D3D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2D3D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3D98
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3D98#FFFFFF#000000##FFFFFF
##2D3D981.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d3d98;
/* rgb */ color: rgb(45, 61, 152);
/* oklch */ color: oklch(40.5% 0.149 270.6);
Tailwind
colors: {
  custom: {
    50: '#7472b7',
    500: '#2d3d98',
    950: '#000000',
  },
}
SCSS
$custom: #2d3d98;
$custom-light: #7472b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3d98",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 231.028,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40481,
    "c": 0.14929,
    "h": 270.6
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

primary
#2D3D98
secondary
#BAAE66
accent
#C84ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D3D98

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

Preview Lab → · Contrast checker → · Palette generator →

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