#2D3291#2D3291

#2D3291 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.154 H 274.0°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2D3291
RGBrgb(45, 50, 145)
HSLhsl(237, 53%, 37%)
HSVhsv(237, 69%, 57%)
CMYKcmyk(69%, 65.5%, 0%, 43.1%)
CIE-LABlab(26.40, 30.09, -53.07)
CIE-LCHlch(26.40, 61.01, 299.55°)
OKLaboklab(37.77% 0.0108 -0.1531)
OKLCHoklch(37.77% 0.154 274)
XYZxyz(7.3319, 4.8828, 27.3387)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3291 #918C2D
analogous
#2D6491 #2D3291 #5A2D91
triadic
#2D3291 #912D32 #32912D
tetradic
#2D3291 #912D64 #918C2D #2D915A
square
#2D3291 #912D64 #918C2D #2D915A
split-complementary
#2D3291 #915A2D #64912D
monochromatic
#101234 #1F2262 #2D3291 #3B42C0 #686DD0

Accessibility & contrast

On white

10.62
#2D3291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D3291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3291
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3291#FFFFFF#000000##FFFFFF
##2D32911.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d3291;
/* rgb */ color: rgb(45, 50, 145);
/* oklch */ color: oklch(37.8% 0.154 274.0);
Tailwind
colors: {
  custom: {
    50: '#746ab2',
    500: '#2d3291',
    950: '#000000',
  },
}
SCSS
$custom: #2d3291;
$custom-light: #746ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3291",
  "rgb": {
    "r": 45,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 237,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37774,
    "c": 0.15353,
    "h": 274
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#2D3291
secondary
#B7B363
accent
#D54CDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D3291

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

Preview Lab → · Contrast checker → · Palette generator →

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