#2D3F95#2D3F95

#2D3F95 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.142 H 269.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2D3F95
RGBrgb(45, 63, 149)
HSLhsl(230, 54%, 38%)
HSVhsv(230, 70%, 58%)
CMYKcmyk(69.8%, 57.7%, 0%, 41.6%)
CIE-LABlab(30.11, 22.91, -49.48)
CIE-LCHlch(30.11, 54.52, 294.85°)
OKLaboklab(40.63% -0.0001 -0.1424)
OKLCHoklch(40.63% 0.142 269.9)
XYZxyz(8.2827, 6.2820, 29.2040)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F95 #95832D
analogous
#2D7395 #2D3F95 #4F2D95
triadic
#2D3F95 #952D3F #3F952D
tetradic
#2D3F95 #952D73 #95832D #2D954F
square
#2D3F95 #952D73 #95832D #2D954F
split-complementary
#2D3F95 #954F2D #73952D
monochromatic
#111737 #1F2B66 #2D3F95 #3B53C4 #6A7CD2

Accessibility & contrast

On white

9.31
#2D3F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2D3F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F95
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F95#FFFFFF#000000##FFFFFF
##2D3F951.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d3f95;
/* rgb */ color: rgb(45, 63, 149);
/* oklch */ color: oklch(40.6% 0.142 269.9);
Tailwind
colors: {
  custom: {
    50: '#7373b5',
    500: '#2d3f95',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f95;
$custom-light: #7373b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f95",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 149
  },
  "hsl": {
    "h": 229.615,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40628,
    "c": 0.14245,
    "h": 269.9
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#2D3F95
secondary
#B9AA65
accent
#C44BDD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D3F95

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

Preview Lab → · Contrast checker → · Palette generator →

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