#2D3F98#2D3F98

#2D3F98 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.147 H 270.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2D3F98
RGBrgb(45, 63, 152)
HSLhsl(230, 54%, 39%)
HSVhsv(230, 70%, 60%)
CMYKcmyk(70.4%, 58.6%, 0%, 40.4%)
CIE-LABlab(30.35, 24.04, -50.92)
CIE-LCHlch(30.35, 56.31, 295.27°)
OKLaboklab(40.88% 0 -0.1467)
OKLCHoklch(40.88% 0.147 270)
XYZxyz(8.5253, 6.3791, 30.4817)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F98 #98862D
analogous
#2D7498 #2D3F98 #502D98
triadic
#2D3F98 #982D3F #3F982D
tetradic
#2D3F98 #982D74 #98862D #2D9850
square
#2D3F98 #982D74 #98862D #2D9850
split-complementary
#2D3F98 #98502D #74982D
monochromatic
#11183A #1F2B69 #2D3F98 #3D54C5 #6C7DD3

Accessibility & contrast

On white

9.23
#2D3F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2D3F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F98
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F98#FFFFFF#000000##FFFFFF
##2D3F981.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d3f98;
/* rgb */ color: rgb(45, 63, 152);
/* oklch */ color: oklch(40.9% 0.147 270.0);
Tailwind
colors: {
  custom: {
    50: '#7473b7',
    500: '#2d3f98',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f98;
$custom-light: #7473b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f98",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 229.907,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40879,
    "c": 0.14671,
    "h": 270
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#2D3F98
secondary
#BAAC66
accent
#C54ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D3F98

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

Preview Lab → · Contrast checker → · Palette generator →

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