#2D42BC#2D42BC

#2D42BC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.6% C 0.192 H 269.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2D42BC
RGBrgb(45, 66, 188)
HSLhsl(231, 61%, 46%)
HSVhsv(231, 76%, 74%)
CMYKcmyk(76.1%, 64.9%, 0%, 26.3%)
CIE-LABlab(34.16, 35.37, -66.25)
CIE-LCHlch(34.16, 75.10, 298.09°)
OKLaboklab(44.64% -0.0028 -0.1916)
OKLCHoklch(44.64% 0.192 269.2)
XYZxyz(12.1044, 8.0838, 48.4896)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42BC #BCA72D
analogous
#2D89BC #2D42BC #602DBC
triadic
#2D42BC #BC2D42 #42BC2D
tetradic
#2D42BC #BC2D89 #BCA72D #2DBC60
square
#2D42BC #BC2D89 #BCA72D #2DBC60
split-complementary
#2D42BC #BC602D #89BC2D
monochromatic
#151F59 #21318B #2D42BC #5164D5 #8290E1

Accessibility & contrast

On white

8.02
#2D42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2D42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42BC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42BC#FFFFFF#000000##FFFFFF
##2D42BC1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d42bc;
/* rgb */ color: rgb(45, 66, 188);
/* oklch */ color: oklch(44.6% 0.192 269.2);
Tailwind
colors: {
  custom: {
    50: '#7c76d1',
    500: '#2d42bc',
    950: '#000000',
  },
}
SCSS
$custom: #2d42bc;
$custom-light: #7c76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42bc",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 231.189,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44639,
    "c": 0.19167,
    "h": 269.2
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#2D42BC
secondary
#CABE7B
accent
#CD43E4
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2D42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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