#2D42B3#2D42B3

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

Color values

HEX#2D42B3
RGBrgb(45, 66, 179)
HSLhsl(231, 60%, 44%)
HSVhsv(231, 75%, 70%)
CMYKcmyk(74.9%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.37, 32.08, -62.23)
CIE-LCHlch(33.37, 70.01, 297.27°)
OKLaboklab(43.82% -0.0024 -0.1799)
OKLCHoklch(43.82% 0.18 269.2)
XYZxyz(11.1643, 7.7078, 43.5385)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42B3 #B39E2D
analogous
#2D85B3 #2D42B3 #5B2DB3
triadic
#2D42B3 #B32D42 #42B32D
tetradic
#2D42B3 #B32D85 #B39E2D #2DB35B
square
#2D42B3 #B32D85 #B39E2D #2DB35B
split-complementary
#2D42B3 #B35B2D #85B32D
monochromatic
#141E51 #213082 #2D42B3 #4B60D2 #7C8CDE

Accessibility & contrast

On white

8.26
#2D42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2D42B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42B3
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42B3#FFFFFF#000000##FFFFFF
##2D42B31.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d42b3;
/* rgb */ color: rgb(45, 66, 179);
/* oklch */ color: oklch(43.8% 0.180 269.2);
Tailwind
colors: {
  custom: {
    50: '#7a76cb',
    500: '#2d42b3',
    950: '#000000',
  },
}
SCSS
$custom: #2d42b3;
$custom-light: #7a76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42b3",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 230.597,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43815,
    "c": 0.17988,
    "h": 269.2
  },
  "luminance": 0.07709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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