#2D42B0#2D42B0

#2D42B0 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.176 H 269.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2D42B0
RGBrgb(45, 66, 176)
HSLhsl(230, 59%, 43%)
HSVhsv(230, 74%, 69%)
CMYKcmyk(74.4%, 62.5%, 0%, 31%)
CIE-LABlab(33.11, 30.98, -60.87)
CIE-LCHlch(33.11, 68.30, 296.97°)
OKLaboklab(43.55% -0.0023 -0.1759)
OKLCHoklch(43.55% 0.176 269.2)
XYZxyz(10.8642, 7.5878, 41.9579)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42B0 #B09B2D
analogous
#2D83B0 #2D42B0 #5A2DB0
triadic
#2D42B0 #B02D42 #42B02D
tetradic
#2D42B0 #B02D83 #B09B2D #2DB05A
square
#2D42B0 #B02D83 #B09B2D #2DB05A
split-complementary
#2D42B0 #B05A2D #83B02D
monochromatic
#141D4F #21307F #2D42B0 #4A5FD1 #7A8ADD

Accessibility & contrast

On white

8.34
#2D42B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D42B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42B0
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42B0#FFFFFF#000000##FFFFFF
##2D42B01.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d42b0;
/* rgb */ color: rgb(45, 66, 176);
/* oklch */ color: oklch(43.5% 0.176 269.2);
Tailwind
colors: {
  custom: {
    50: '#7976c9',
    500: '#2d42b0',
    950: '#000000',
  },
}
SCSS
$custom: #2d42b0;
$custom-light: #7976c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42b0",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 230.382,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43545,
    "c": 0.1759,
    "h": 269.2
  },
  "luminance": 0.07589
}

Semantic roles & 50–950 ramp

primary
#2D42B0
secondary
#C5B873
accent
#C945E2
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2D42B0

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

Preview Lab → · Contrast checker → · Palette generator →

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