#2B5AAA#2B5AAA

#2B5AAA is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.138 H 260.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#2B5AAA
RGBrgb(43, 90, 170)
HSLhsl(218, 60%, 42%)
HSVhsv(218, 75%, 67%)
CMYKcmyk(74.7%, 47.1%, 0%, 33.3%)
CIE-LABlab(39.12, 12.60, -47.57)
CIE-LCHlch(39.12, 49.21, 284.84°)
OKLaboklab(47.92% -0.0233 -0.1364)
OKLCHoklch(47.92% 0.138 260.3)
XYZxyz(11.9055, 10.7269, 39.4655)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5AAA #AA7B2B
analogous
#2B9AAA #2B5AAA #3C2BAA
triadic
#2B5AAA #AA2B5A #5AAA2B
tetradic
#2B5AAA #AA2B9A #AA7B2B #2BAA3C
square
#2B5AAA #AA2B9A #AA7B2B #2BAA3C
split-complementary
#2B5AAA #AA3C2B #9AAA2B
monochromatic
#122648 #1F4079 #2B5AAA #4377CF #749ADC

Accessibility & contrast

On white

6.68
#2B5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2B5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5AAA
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5AAA#FFFFFF#000000##FFFFFF
##2B5AAA1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F62AD
Deuteranopia (green-blind)
#1057A8
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2b5aaa;
/* rgb */ color: rgb(43, 90, 170);
/* oklch */ color: oklch(47.9% 0.138 260.3);
Tailwind
colors: {
  custom: {
    50: '#7688c4',
    500: '#2b5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2b5aaa;
$custom-light: #7688c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5aaa",
  "rgb": {
    "r": 43,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 217.795,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47916,
    "c": 0.13841,
    "h": 260.3
  },
  "luminance": 0.10728
}

Semantic roles & 50–950 ramp

primary
#2B5AAA
secondary
#C3A46E
accent
#A845E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2B5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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