#2D3A98#2D3A98

#2D3A98 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.153 H 271.5°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2D3A98
RGBrgb(45, 58, 152)
HSLhsl(233, 54%, 39%)
HSVhsv(233, 70%, 60%)
CMYKcmyk(70.4%, 61.8%, 0%, 40.4%)
CIE-LABlab(29.03, 27.38, -53.07)
CIE-LCHlch(29.03, 59.71, 297.29°)
OKLaboklab(39.9% 0.0041 -0.1531)
OKLCHoklch(39.9% 0.153 271.5)
XYZxyz(8.2608, 5.8502, 30.3935)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3A98 #988B2D
analogous
#2D6F98 #2D3A98 #552D98
triadic
#2D3A98 #982D3A #3A982D
tetradic
#2D3A98 #982D6F #988B2D #2D9855
square
#2D3A98 #982D6F #988B2D #2D9855
split-complementary
#2D3A98 #98552D #6F982D
monochromatic
#11163A #1F2869 #2D3A98 #3D4DC5 #6C79D3

Accessibility & contrast

On white

9.68
#2D3A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2D3A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3A98
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3A98#FFFFFF#000000##FFFFFF
##2D3A981.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d3a98;
/* rgb */ color: rgb(45, 58, 152);
/* oklch */ color: oklch(39.9% 0.153 271.5);
Tailwind
colors: {
  custom: {
    50: '#7470b7',
    500: '#2d3a98',
    950: '#000000',
  },
}
SCSS
$custom: #2d3a98;
$custom-light: #7470b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3a98",
  "rgb": {
    "r": 45,
    "g": 58,
    "b": 152
  },
  "hsl": {
    "h": 232.71,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39899,
    "c": 0.15312,
    "h": 271.5
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

primary
#2D3A98
secondary
#BAB066
accent
#CC4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3A98

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

Preview Lab → · Contrast checker → · Palette generator →

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