#2D42B6#2D42B6

#2D42B6 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.184 H 269.2°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2D42B6
RGBrgb(45, 66, 182)
HSLhsl(231, 60%, 45%)
HSVhsv(231, 75%, 71%)
CMYKcmyk(75.3%, 63.7%, 0%, 28.6%)
CIE-LABlab(33.63, 33.18, -63.58)
CIE-LCHlch(33.63, 71.72, 297.56°)
OKLaboklab(44.09% -0.0025 -0.1838)
OKLCHoklch(44.09% 0.184 269.2)
XYZxyz(11.4710, 7.8305, 45.1538)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42B6 #B6A12D
analogous
#2D87B6 #2D42B6 #5D2DB6
triadic
#2D42B6 #B62D42 #42B62D
tetradic
#2D42B6 #B62D87 #B6A12D #2DB65D
square
#2D42B6 #B62D87 #B6A12D #2DB65D
split-complementary
#2D42B6 #B65D2D #87B62D
monochromatic
#151E54 #213085 #2D42B6 #4D62D3 #7E8DDF

Accessibility & contrast

On white

8.18
#2D42B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2D42B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42B6
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42B6#FFFFFF#000000##FFFFFF
##2D42B61.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d42b6;
/* rgb */ color: rgb(45, 66, 182);
/* oklch */ color: oklch(44.1% 0.184 269.2);
Tailwind
colors: {
  custom: {
    50: '#7b76cd',
    500: '#2d42b6',
    950: '#000000',
  },
}
SCSS
$custom: #2d42b6;
$custom-light: #7b76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42b6",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 230.803,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44087,
    "c": 0.18384,
    "h": 269.2
  },
  "luminance": 0.07832
}

Semantic roles & 50–950 ramp

primary
#2D42B6
secondary
#C8BB77
accent
#CB44E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2D42B6

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

Preview Lab → · Contrast checker → · Palette generator →

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