#2B3F87#2B3F87

#2B3F87 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.123 H 268.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2B3F87
RGBrgb(43, 63, 135)
HSLhsl(227, 52%, 35%)
HSVhsv(227, 68%, 53%)
CMYKcmyk(68.1%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.95, 17.29, -42.75)
CIE-LCHlch(28.95, 46.12, 292.02°)
OKLaboklab(39.39% -0.0031 -0.1227)
OKLCHoklch(39.39% 0.123 268.5)
XYZxyz(7.1454, 5.8172, 23.6632)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3F87 #87732B
analogous
#2B6D87 #2B3F87 #452B87
triadic
#2B3F87 #872B3F #3F872B
tetradic
#2B3F87 #872B6D #87732B #2B8745
square
#2B3F87 #872B6D #87732B #2B8745
split-complementary
#2B3F87 #87452B #6D872B
monochromatic
#0D142A #1C2959 #2B3F87 #3A55B5 #6078CC

Accessibility & contrast

On white

9.71
#2B3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2B3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3F87
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3F87#FFFFFF#000000##FFFFFF
##2B3F871.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b3f87;
/* rgb */ color: rgb(43, 63, 135);
/* oklch */ color: oklch(39.4% 0.123 268.5);
Tailwind
colors: {
  custom: {
    50: '#6f73aa',
    500: '#2b3f87',
    950: '#000000',
  },
}
SCSS
$custom: #2b3f87;
$custom-light: #6f73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3f87",
  "rgb": {
    "r": 43,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 226.957,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39385,
    "c": 0.12276,
    "h": 268.5
  },
  "luminance": 0.05818
}

Semantic roles & 50–950 ramp

primary
#2B3F87
secondary
#B29F5B
accent
#BC4DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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