#2B4098#2B4098

#2B4098 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.146 H 268.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2B4098
RGBrgb(43, 64, 152)
HSLhsl(228, 56%, 38%)
HSVhsv(228, 72%, 60%)
CMYKcmyk(71.7%, 57.9%, 0%, 40.4%)
CIE-LABlab(30.51, 23.07, -50.66)
CIE-LCHlch(30.51, 55.67, 294.48°)
OKLaboklab(40.97% -0.0029 -0.146)
OKLCHoklch(40.97% 0.146 268.9)
XYZxyz(8.4952, 6.4465, 30.4963)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4098 #98832B
analogous
#2B7698 #2B4098 #4C2B98
triadic
#2B4098 #982B40 #40982B
tetradic
#2B4098 #982B76 #98832B #2B984C
square
#2B4098 #982B76 #98832B #2B984C
split-complementary
#2B4098 #984C2B #76982B
monochromatic
#101839 #1E2C68 #2B4098 #3954C7 #697ED5

Accessibility & contrast

On white

9.17
#2B4098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2B4098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4098
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4098#FFFFFF#000000##FFFFFF
##2B40981.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b4098;
/* rgb */ color: rgb(43, 64, 152);
/* oklch */ color: oklch(41.0% 0.146 268.9);
Tailwind
colors: {
  custom: {
    50: '#7374b7',
    500: '#2b4098',
    950: '#000000',
  },
}
SCSS
$custom: #2b4098;
$custom-light: #7374b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4098",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 228.44,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40971,
    "c": 0.14601,
    "h": 268.9
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#2B4098
secondary
#BBAA64
accent
#C249DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2B4098

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

Preview Lab → · Contrast checker → · Palette generator →

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