#2B54B2#2B54B2

#2B54B2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.2% C 0.157 H 263.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#2B54B2
RGBrgb(43, 84, 178)
HSLhsl(222, 61%, 43%)
HSVhsv(222, 76%, 70%)
CMYKcmyk(75.8%, 52.8%, 0%, 30.2%)
CIE-LABlab(37.96, 19.62, -54.16)
CIE-LCHlch(37.96, 57.60, 289.91°)
OKLaboklab(47.21% -0.0172 -0.1559)
OKLCHoklch(47.21% 0.157 263.7)
XYZxyz(12.1996, 10.0672, 43.4111)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B54B2 #B2892B
analogous
#2B97B2 #2B54B2 #452BB2
triadic
#2B54B2 #B22B54 #54B22B
tetradic
#2B54B2 #B22B97 #B2892B #2BB245
square
#2B54B2 #B22B97 #B2892B #2BB245
split-complementary
#2B54B2 #B2452B #97B22B
monochromatic
#13254F #1F3D81 #2B54B2 #4872D3 #7998DF

Accessibility & contrast

On white

6.97
#2B54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2B54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B54B2
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B54B2#FFFFFF#000000##FFFFFF
##2B54B21.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1160B5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2b54b2;
/* rgb */ color: rgb(43, 84, 178);
/* oklch */ color: oklch(47.2% 0.157 263.7);
Tailwind
colors: {
  custom: {
    50: '#7883ca',
    500: '#2b54b2',
    950: '#000000',
  },
}
SCSS
$custom: #2b54b2;
$custom-light: #7883ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b54b2",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 221.778,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47209,
    "c": 0.15688,
    "h": 263.7
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#2B54B2
secondary
#C7AD72
accent
#B344E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2B54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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