#2B3C97#2B3C97

#2B3C97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.150 H 270.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2B3C97
RGBrgb(43, 60, 151)
HSLhsl(231, 56%, 38%)
HSVhsv(231, 72%, 59%)
CMYKcmyk(71.5%, 60.3%, 0%, 40.8%)
CIE-LABlab(29.36, 25.38, -51.93)
CIE-LCHlch(29.36, 57.80, 296.05°)
OKLaboklab(40.09% 0.0004 -0.1497)
OKLCHoklch(40.09% 0.15 270.1)
XYZxyz(8.1961, 5.9789, 29.9942)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3C97 #97862B
analogous
#2B7297 #2B3C97 #502B97
triadic
#2B3C97 #972B3C #3C972B
tetradic
#2B3C97 #972B72 #97862B #2B9750
square
#2B3C97 #972B72 #97862B #2B9750
split-complementary
#2B3C97 #97502B #72972B
monochromatic
#101638 #1D2967 #2B3C97 #394FC7 #6879D4

Accessibility & contrast

On white

9.56
#2B3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2B3C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3C97
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3C97#FFFFFF#000000##FFFFFF
##2B3C971.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b3c97;
/* rgb */ color: rgb(43, 60, 151);
/* oklch */ color: oklch(40.1% 0.150 270.1);
Tailwind
colors: {
  custom: {
    50: '#7371b6',
    500: '#2b3c97',
    950: '#000000',
  },
}
SCSS
$custom: #2b3c97;
$custom-light: #7371b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3c97",
  "rgb": {
    "r": 43,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 230.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40086,
    "c": 0.14975,
    "h": 270.1
  },
  "luminance": 0.0598
}

Semantic roles & 50–950 ramp

primary
#2B3C97
secondary
#BBAD63
accent
#C749DF
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2B3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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