#2D3F9C#2D3F9C

#2D3F9C is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.152 H 270.0°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2D3F9C
RGBrgb(45, 63, 156)
HSLhsl(230, 55%, 39%)
HSVhsv(230, 71%, 61%)
CMYKcmyk(71.2%, 59.6%, 0%, 38.8%)
CIE-LABlab(30.67, 25.53, -52.83)
CIE-LCHlch(30.67, 58.68, 295.79°)
OKLaboklab(41.22% 0 -0.1523)
OKLCHoklch(41.22% 0.152 270)
XYZxyz(8.8584, 6.5123, 32.2362)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F9C #9C8A2D
analogous
#2D779C #2D3F9C #522D9C
triadic
#2D3F9C #9C2D3F #3F9C2D
tetradic
#2D3F9C #9C2D77 #9C8A2D #2D9C52
square
#2D3F9C #9C2D77 #9C8A2D #2D9C52
split-complementary
#2D3F9C #9C522D #779C2D
monochromatic
#12193D #1F2C6D #2D3F9C #3F55C8 #6E7FD5

Accessibility & contrast

On white

9.12
#2D3F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D3F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F9C
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F9C#FFFFFF#000000##FFFFFF
##2D3F9C1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d3f9c;
/* rgb */ color: rgb(45, 63, 156);
/* oklch */ color: oklch(41.2% 0.152 270.0);
Tailwind
colors: {
  custom: {
    50: '#7573ba',
    500: '#2d3f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f9c;
$custom-light: #7573ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f9c",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 230.27,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41218,
    "c": 0.15232,
    "h": 270
  },
  "luminance": 0.06513
}

Semantic roles & 50–950 ramp

primary
#2D3F9C
secondary
#BCAF68
accent
#C649DF
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2D3F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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