#2D4FF2#2D4FF2

#2D4FF2 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.9% C 0.244 H 267.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#2D4FF2
RGBrgb(45, 79, 242)
HSLhsl(230, 88%, 56%)
HSVhsv(230, 81%, 95%)
CMYKcmyk(81.4%, 67.4%, 0%, 5.1%)
CIE-LABlab(42.09, 46.51, -84.26)
CIE-LCHlch(42.09, 96.24, 298.90°)
OKLaboklab(51.93% -0.0123 -0.2442)
OKLCHoklch(51.93% 0.244 267.1)
XYZxyz(19.8996, 12.5583, 85.3624)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4FF2 #F2D02D
analogous
#2DB1F2 #2D4FF2 #6E2DF2
triadic
#2D4FF2 #F22D4F #4FF22D
tetradic
#2D4FF2 #F22DB1 #F2D02D #2DF26E
square
#2D4FF2 #F22DB1 #F2D02D #2DF26E
split-complementary
#2D4FF2 #F26E2D #B1F22D
monochromatic
#0A239B #0D30D5 #2D4FF2 #677FF6 #A0B0F9

Accessibility & contrast

On white

5.98
#2D4FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2D4FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D4FF2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4FF2#FFFFFF#000000##FFFFFF
##2D4FF21.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DF7
Deuteranopia (green-blind)
#005AEF
Tritanopia (blue-blind)
#007C9A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2d4ff2;
/* rgb */ color: rgb(45, 79, 242);
/* oklch */ color: oklch(51.9% 0.244 267.1);
Tailwind
colors: {
  custom: {
    50: '#8880f8',
    500: '#2d4ff2',
    950: '#000000',
  },
}
SCSS
$custom: #2d4ff2;
$custom-light: #8880f8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4ff2",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 229.645,
    "s": 88.341,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51929,
    "c": 0.24448,
    "h": 267.1
  },
  "luminance": 0.12561
}

Semantic roles & 50–950 ramp

primary
#2D4FF2
secondary
#E6D895
accent
#DA29FE
background
#F9F7FF
surface
#F2EEFF
border
#CCC9D7
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #2D4FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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