#2D3F9E#2D3F9E

#2D3F9E is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.155 H 270.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2D3F9E
RGBrgb(45, 63, 158)
HSLhsl(230, 56%, 40%)
HSVhsv(230, 72%, 62%)
CMYKcmyk(71.5%, 60.1%, 0%, 38%)
CIE-LABlab(30.83, 26.28, -53.78)
CIE-LCHlch(30.83, 59.86, 296.04°)
OKLaboklab(41.39% 0.0001 -0.1551)
OKLCHoklch(41.39% 0.155 270)
XYZxyz(9.0291, 6.5806, 33.1355)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F9E #9E8C2D
analogous
#2D789E #2D3F9E #532D9E
triadic
#2D3F9E #9E2D3F #3F9E2D
tetradic
#2D3F9E #9E2D78 #9E8C2D #2D9E53
square
#2D3F9E #9E2D78 #9E8C2D #2D9E53
split-complementary
#2D3F9E #9E532D #789E2D
monochromatic
#12193F #1F2C6E #2D3F9E #4055C9 #6F80D6

Accessibility & contrast

On white

9.07
#2D3F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2D3F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F9E
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F9E#FFFFFF#000000##FFFFFF
##2D3F9E1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d3f9e;
/* rgb */ color: rgb(45, 63, 158);
/* oklch */ color: oklch(41.4% 0.155 270.0);
Tailwind
colors: {
  custom: {
    50: '#7573bb',
    500: '#2d3f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f9e;
$custom-light: #7573bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f9e",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 230.442,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4139,
    "c": 0.15511,
    "h": 270
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#2D3F9E
secondary
#BDB069
accent
#C749DF
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D3F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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