#2B387F#2B387F

#2B387F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.120 H 271.5°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2B387F
RGBrgb(43, 56, 127)
HSLhsl(231, 49%, 33%)
HSVhsv(231, 66%, 50%)
CMYKcmyk(66.1%, 55.9%, 0%, 50.2%)
CIE-LABlab(26.37, 19.07, -41.92)
CIE-LCHlch(26.37, 46.05, 294.46°)
OKLaboklab(37.26% 0.0032 -0.1204)
OKLCHoklch(37.26% 0.12 271.5)
XYZxyz(6.2399, 4.8737, 20.6864)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B387F #7F722B
analogous
#2B627F #2B387F #482B7F
triadic
#2B387F #7F2B38 #387F2B
tetradic
#2B387F #7F2B62 #7F722B #2B7F48
square
#2B387F #7F2B62 #7F722B #2B7F48
split-complementary
#2B387F #7F482B #627F2B
monochromatic
#0C1024 #1C2451 #2B387F #3A4CAD #5C6DC8

Accessibility & contrast

On white

10.63
#2B387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B387F
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B387F#FFFFFF#000000##FFFFFF
##2B387F1.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064281
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b387f;
/* rgb */ color: rgb(43, 56, 127);
/* oklch */ color: oklch(37.3% 0.120 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e6ea5',
    500: '#2b387f',
    950: '#000000',
  },
}
SCSS
$custom: #2b387f;
$custom-light: #6e6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b387f",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 230.714,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37256,
    "c": 0.12042,
    "h": 271.5
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#2B387F
secondary
#AEA158
accent
#C44FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2B387F

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

Preview Lab → · Contrast checker → · Palette generator →

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