#2B45B2#2B45B2

#2B45B2 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.175 H 268.0°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2B45B2
RGBrgb(43, 69, 178)
HSLhsl(228, 61%, 43%)
HSVhsv(228, 76%, 70%)
CMYKcmyk(75.8%, 61.2%, 0%, 30.2%)
CIE-LABlab(33.95, 29.53, -60.69)
CIE-LCHlch(33.95, 67.49, 295.94°)
OKLaboklab(44.19% -0.0062 -0.1754)
OKLCHoklch(44.19% 0.175 268)
XYZxyz(11.1575, 7.9830, 43.0637)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45B2 #B2982B
analogous
#2B88B2 #2B45B2 #542BB2
triadic
#2B45B2 #B22B45 #45B22B
tetradic
#2B45B2 #B22B88 #B2982B #2BB254
square
#2B45B2 #B22B88 #B2982B #2BB254
split-complementary
#2B45B2 #B2542B #88B22B
monochromatic
#131F4F #1F3281 #2B45B2 #4862D3 #798CDF

Accessibility & contrast

On white

8.09
#2B45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2B45B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45B2
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45B2#FFFFFF#000000##FFFFFF
##2B45B21.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2b45b2;
/* rgb */ color: rgb(43, 69, 178);
/* oklch */ color: oklch(44.2% 0.175 268.0);
Tailwind
colors: {
  custom: {
    50: '#7978ca',
    500: '#2b45b2',
    950: '#000000',
  },
}
SCSS
$custom: #2b45b2;
$custom-light: #7978ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45b2",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 228.444,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44193,
    "c": 0.17547,
    "h": 268
  },
  "luminance": 0.07984
}

Semantic roles & 50–950 ramp

primary
#2B45B2
secondary
#C7B672
accent
#C544E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2B45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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