#2B3F97#2B3F97

#2B3F97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.146 H 269.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2B3F97
RGBrgb(43, 63, 151)
HSLhsl(229, 56%, 38%)
HSVhsv(229, 72%, 59%)
CMYKcmyk(71.5%, 58.3%, 0%, 40.8%)
CIE-LABlab(30.16, 23.37, -50.62)
CIE-LCHlch(30.16, 55.75, 294.78°)
OKLaboklab(40.69% -0.0021 -0.1459)
OKLCHoklch(40.69% 0.146 269.2)
XYZxyz(8.3578, 6.3021, 30.0481)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3F97 #97832B
analogous
#2B7597 #2B3F97 #4D2B97
triadic
#2B3F97 #972B3F #3F972B
tetradic
#2B3F97 #972B75 #97832B #2B974D
square
#2B3F97 #972B75 #97832B #2B974D
split-complementary
#2B3F97 #974D2B #75972B
monochromatic
#101738 #1D2B67 #2B3F97 #3953C7 #687CD4

Accessibility & contrast

On white

9.29
#2B3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2B3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3F97
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3F97#FFFFFF#000000##FFFFFF
##2B3F971.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b3f97;
/* rgb */ color: rgb(43, 63, 151);
/* oklch */ color: oklch(40.7% 0.146 269.2);
Tailwind
colors: {
  custom: {
    50: '#7373b6',
    500: '#2b3f97',
    950: '#000000',
  },
}
SCSS
$custom: #2b3f97;
$custom-light: #7373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3f97",
  "rgb": {
    "r": 43,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 228.889,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40685,
    "c": 0.14589,
    "h": 269.2
  },
  "luminance": 0.06303
}

Semantic roles & 50–950 ramp

primary
#2B3F97
secondary
#BBAA63
accent
#C349DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2B3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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