#2D42B7#2D42B7

#2D42B7 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.2% C 0.185 H 269.2°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2D42B7
RGBrgb(45, 66, 183)
HSLhsl(231, 61%, 45%)
HSVhsv(231, 75%, 72%)
CMYKcmyk(75.4%, 63.9%, 0%, 28.2%)
CIE-LABlab(33.71, 33.55, -64.03)
CIE-LCHlch(33.71, 72.28, 297.65°)
OKLaboklab(44.18% -0.0025 -0.1851)
OKLCHoklch(44.18% 0.185 269.2)
XYZxyz(11.5747, 7.8720, 45.7000)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42B7 #B7A22D
analogous
#2D87B7 #2D42B7 #5D2DB7
triadic
#2D42B7 #B72D42 #42B72D
tetradic
#2D42B7 #B72D87 #B7A22D #2DB75D
square
#2D42B7 #B72D87 #B7A22D #2DB75D
split-complementary
#2D42B7 #B75D2D #87B72D
monochromatic
#151F55 #213086 #2D42B7 #4E62D3 #7F8EDF

Accessibility & contrast

On white

8.16
#2D42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D42B7
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42B7#FFFFFF#000000##FFFFFF
##2D42B71.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d42b7;
/* rgb */ color: rgb(45, 66, 183);
/* oklch */ color: oklch(44.2% 0.185 269.2);
Tailwind
colors: {
  custom: {
    50: '#7b76ce',
    500: '#2d42b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d42b7;
$custom-light: #7b76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42b7",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 230.87,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44179,
    "c": 0.18515,
    "h": 269.2
  },
  "luminance": 0.07873
}

Semantic roles & 50–950 ramp

primary
#2D42B7
secondary
#C8BC78
accent
#CB44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2D42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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