#2B3198#2B3198

#2B3198 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.165 H 273.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2B3198
RGBrgb(43, 49, 152)
HSLhsl(237, 56%, 38%)
HSVhsv(237, 72%, 60%)
CMYKcmyk(71.7%, 67.8%, 0%, 40.4%)
CIE-LABlab(26.67, 33.00, -56.94)
CIE-LCHlch(26.67, 65.81, 300.09°)
OKLaboklab(38.13% 0.0085 -0.1645)
OKLCHoklch(38.13% 0.165 273)
XYZxyz(7.7602, 4.9765, 30.2513)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3198 #98922B
analogous
#2B6798 #2B3198 #5B2B98
triadic
#2B3198 #982B31 #31982B
tetradic
#2B3198 #982B67 #98922B #2B985B
square
#2B3198 #982B67 #98922B #2B985B
split-complementary
#2B3198 #985B2B #67982B
monochromatic
#101239 #1E2268 #2B3198 #3941C7 #696FD5

Accessibility & contrast

On white

10.52
#2B3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2B3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3198
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3198#FFFFFF#000000##FFFFFF
##2B31981.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b3198;
/* rgb */ color: rgb(43, 49, 152);
/* oklch */ color: oklch(38.1% 0.165 273.0);
Tailwind
colors: {
  custom: {
    50: '#7469b7',
    500: '#2b3198',
    950: '#000000',
  },
}
SCSS
$custom: #2b3198;
$custom-light: #7469b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3198",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 236.697,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38133,
    "c": 0.16475,
    "h": 273
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#2B3198
secondary
#BBB664
accent
#D749DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B3198

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

Preview Lab → · Contrast checker → · Palette generator →

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