#2D45BC#2D45BC

#2D45BC is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.2% C 0.188 H 268.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#2D45BC
RGBrgb(45, 69, 188)
HSLhsl(230, 61%, 46%)
HSVhsv(230, 76%, 74%)
CMYKcmyk(76.1%, 63.3%, 0%, 26.3%)
CIE-LABlab(34.89, 33.44, -65.05)
CIE-LCHlch(34.89, 73.15, 297.21°)
OKLaboklab(45.18% -0.0046 -0.1881)
OKLCHoklch(45.18% 0.188 268.6)
XYZxyz(12.2843, 8.4436, 48.5496)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45BC #BCA42D
analogous
#2D8CBC #2D45BC #5C2DBC
triadic
#2D45BC #BC2D45 #45BC2D
tetradic
#2D45BC #BC2D8C #BCA42D #2DBC5C
square
#2D45BC #BC2D8C #BCA42D #2DBC5C
split-complementary
#2D45BC #BC5C2D #8CBC2D
monochromatic
#152159 #21338B #2D45BC #5167D5 #8292E1

Accessibility & contrast

On white

7.81
#2D45BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2D45BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45BC
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45BC#FFFFFF#000000##FFFFFF
##2D45BC1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#00647A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d45bc;
/* rgb */ color: rgb(45, 69, 188);
/* oklch */ color: oklch(45.2% 0.188 268.6);
Tailwind
colors: {
  custom: {
    50: '#7c78d1',
    500: '#2d45bc',
    950: '#000000',
  },
}
SCSS
$custom: #2d45bc;
$custom-light: #7c78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45bc",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 229.93,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45179,
    "c": 0.18816,
    "h": 268.6
  },
  "luminance": 0.08445
}

Semantic roles & 50–950 ramp

primary
#2D45BC
secondary
#CABD7B
accent
#C943E4
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2D45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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