#2D4EC1#2D4EC1

#2D4EC1 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.184 H 266.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2D4EC1
RGBrgb(45, 78, 193)
HSLhsl(227, 62%, 47%)
HSVhsv(227, 77%, 76%)
CMYKcmyk(76.7%, 59.6%, 0%, 24.3%)
CIE-LABlab(37.58, 29.46, -63.58)
CIE-LCHlch(37.58, 70.08, 294.86°)
OKLaboklab(47.3% -0.0104 -0.1837)
OKLCHoklch(47.3% 0.184 266.8)
XYZxyz(13.4288, 9.8554, 51.6363)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4EC1 #C1A02D
analogous
#2D98C1 #2D4EC1 #562DC1
triadic
#2D4EC1 #C12D4E #4EC12D
tetradic
#2D4EC1 #C12D98 #C1A02D #2DC156
square
#2D4EC1 #C12D98 #C1A02D #2DC156
split-complementary
#2D4EC1 #C1562D #98C12D
monochromatic
#16265E #213A8F #2D4EC1 #5471D7 #869AE3

Accessibility & contrast

On white

7.07
#2D4EC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2D4EC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4EC1
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4EC1#FFFFFF#000000##FFFFFF
##2D4EC11.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d4ec1;
/* rgb */ color: rgb(45, 78, 193);
/* oklch */ color: oklch(47.3% 0.184 266.8);
Tailwind
colors: {
  custom: {
    50: '#7c7fd5',
    500: '#2d4ec1',
    950: '#000000',
  },
}
SCSS
$custom: #2d4ec1;
$custom-light: #7c7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4ec1",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 226.622,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47304,
    "c": 0.18398,
    "h": 266.8
  },
  "luminance": 0.09857
}

Semantic roles & 50–950 ramp

primary
#2D4EC1
secondary
#CCBB7E
accent
#C143E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D4EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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