#2D3F9F#2D3F9F

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

Color values

HEX#2D3F9F
RGBrgb(45, 63, 159)
HSLhsl(231, 56%, 40%)
HSVhsv(231, 72%, 62%)
CMYKcmyk(71.7%, 60.4%, 0%, 37.6%)
CIE-LABlab(30.91, 26.65, -54.25)
CIE-LCHlch(30.91, 60.45, 296.16°)
OKLaboklab(41.48% 0.0001 -0.1565)
OKLCHoklch(41.48% 0.156 270)
XYZxyz(9.1156, 6.6152, 33.5906)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F9F #9F8D2D
analogous
#2D789F #2D3F9F #542D9F
triadic
#2D3F9F #9F2D3F #3F9F2D
tetradic
#2D3F9F #9F2D78 #9F8D2D #2D9F54
square
#2D3F9F #9F2D78 #9F8D2D #2D9F54
split-complementary
#2D3F9F #9F542D #789F2D
monochromatic
#121940 #202C6F #2D3F9F #4056C9 #7080D6

Accessibility & contrast

On white

9.04
#2D3F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3F9F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F9F#FFFFFF#000000##FFFFFF
##2D3F9F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d3f9f;
/* rgb */ color: rgb(45, 63, 159);
/* oklch */ color: oklch(41.5% 0.156 270.0);
Tailwind
colors: {
  custom: {
    50: '#7673bc',
    500: '#2d3f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f9f;
$custom-light: #7673bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f9f",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 230.526,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.41476,
    "c": 0.15649,
    "h": 270
  },
  "luminance": 0.06616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D3F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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