#2B3197#2B3197

#2B3197 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.163 H 273.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2B3197
RGBrgb(43, 49, 151)
HSLhsl(237, 56%, 38%)
HSVhsv(237, 72%, 59%)
CMYKcmyk(71.5%, 67.5%, 0%, 40.8%)
CIE-LABlab(26.57, 32.64, -56.48)
CIE-LCHlch(26.57, 65.23, 300.02°)
OKLaboklab(38.04% 0.0086 -0.1632)
OKLCHoklch(38.04% 0.163 273)
XYZxyz(7.6786, 4.9438, 29.8217)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3197 #97912B
analogous
#2B6797 #2B3197 #5B2B97
triadic
#2B3197 #972B31 #31972B
tetradic
#2B3197 #972B67 #97912B #2B975B
square
#2B3197 #972B67 #97912B #2B975B
split-complementary
#2B3197 #975B2B #67972B
monochromatic
#101238 #1D2267 #2B3197 #3941C7 #686ED4

Accessibility & contrast

On white

10.56
#2B3197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2B3197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3197
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3197#FFFFFF#000000##FFFFFF
##2B31971.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b3197;
/* rgb */ color: rgb(43, 49, 151);
/* oklch */ color: oklch(38.0% 0.163 273.0);
Tailwind
colors: {
  custom: {
    50: '#7469b7',
    500: '#2b3197',
    950: '#000000',
  },
}
SCSS
$custom: #2b3197;
$custom-light: #7469b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3197",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 236.667,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38037,
    "c": 0.16342,
    "h": 273
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B3197

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

Preview Lab → · Contrast checker → · Palette generator →

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