#2D42B4#2D42B4

#2D42B4 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.181 H 269.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2D42B4
RGBrgb(45, 66, 180)
HSLhsl(231, 60%, 44%)
HSVhsv(231, 75%, 71%)
CMYKcmyk(75%, 63.3%, 0%, 29.4%)
CIE-LABlab(33.45, 32.45, -62.68)
CIE-LCHlch(33.45, 70.58, 297.37°)
OKLaboklab(43.91% -0.0024 -0.1812)
OKLCHoklch(43.91% 0.181 269.2)
XYZxyz(11.2658, 7.7484, 44.0730)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42B4 #B49F2D
analogous
#2D86B4 #2D42B4 #5C2DB4
triadic
#2D42B4 #B42D42 #42B42D
tetradic
#2D42B4 #B42D86 #B49F2D #2DB45C
square
#2D42B4 #B42D86 #B49F2D #2DB45C
split-complementary
#2D42B4 #B45C2D #86B42D
monochromatic
#151E52 #213083 #2D42B4 #4C61D2 #7D8CDE

Accessibility & contrast

On white

8.24
#2D42B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D42B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42B4
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42B4#FFFFFF#000000##FFFFFF
##2D42B41.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d42b4;
/* rgb */ color: rgb(45, 66, 180);
/* oklch */ color: oklch(43.9% 0.181 269.2);
Tailwind
colors: {
  custom: {
    50: '#7a76cb',
    500: '#2d42b4',
    950: '#000000',
  },
}
SCSS
$custom: #2d42b4;
$custom-light: #7a76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42b4",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 230.667,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43906,
    "c": 0.18121,
    "h": 269.2
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#2D42B4
secondary
#C7BA76
accent
#CA45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2D42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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