#2D42B2#2D42B2

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

Color values

HEX#2D42B2
RGBrgb(45, 66, 178)
HSLhsl(231, 60%, 44%)
HSVhsv(231, 75%, 70%)
CMYKcmyk(74.7%, 62.9%, 0%, 30.2%)
CIE-LABlab(33.28, 31.71, -61.78)
CIE-LCHlch(33.28, 69.44, 297.17°)
OKLaboklab(43.73% -0.0024 -0.1785)
OKLCHoklch(43.73% 0.179 269.2)
XYZxyz(11.0635, 7.6675, 43.0077)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42B2 #B29D2D
analogous
#2D84B2 #2D42B2 #5A2DB2
triadic
#2D42B2 #B22D42 #42B22D
tetradic
#2D42B2 #B22D84 #B29D2D #2DB25A
square
#2D42B2 #B22D84 #B29D2D #2DB25A
split-complementary
#2D42B2 #B25A2D #84B22D
monochromatic
#141E50 #213081 #2D42B2 #4B60D1 #7C8BDE

Accessibility & contrast

On white

8.29
#2D42B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2D42B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42B2
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42B2#FFFFFF#000000##FFFFFF
##2D42B21.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d42b2;
/* rgb */ color: rgb(45, 66, 178);
/* oklch */ color: oklch(43.7% 0.179 269.2);
Tailwind
colors: {
  custom: {
    50: '#7a76ca',
    500: '#2d42b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d42b2;
$custom-light: #7a76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42b2",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 230.526,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43725,
    "c": 0.17856,
    "h": 269.2
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#2D42B2
secondary
#C6B975
accent
#CA45E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2D42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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