#2B3287#2B3287

#2B3287 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.140 H 273.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2B3287
RGBrgb(43, 50, 135)
HSLhsl(235, 52%, 35%)
HSVhsv(235, 68%, 53%)
CMYKcmyk(68.1%, 63%, 0%, 47.1%)
CIE-LABlab(25.39, 26.14, -48.52)
CIE-LCHlch(25.39, 55.11, 298.32°)
OKLaboklab(36.73% 0.0089 -0.1398)
OKLCHoklch(36.73% 0.14 273.7)
XYZxyz(6.5086, 4.5435, 23.4510)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3287 #87802B
analogous
#2B6087 #2B3287 #522B87
triadic
#2B3287 #872B32 #32872B
tetradic
#2B3287 #872B60 #87802B #2B8752
square
#2B3287 #872B60 #87802B #2B8752
split-complementary
#2B3287 #87522B #60872B
monochromatic
#0D102A #1C2159 #2B3287 #3A43B5 #6068CC

Accessibility & contrast

On white

11.00
#2B3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2B3287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3287
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3287#FFFFFF#000000##FFFFFF
##2B32871.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b3287;
/* rgb */ color: rgb(43, 50, 135);
/* oklch */ color: oklch(36.7% 0.140 273.7);
Tailwind
colors: {
  custom: {
    50: '#706aab',
    500: '#2b3287',
    950: '#000000',
  },
}
SCSS
$custom: #2b3287;
$custom-light: #706aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3287",
  "rgb": {
    "r": 43,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 235.435,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36729,
    "c": 0.14012,
    "h": 273.7
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#2B3287
secondary
#B2AC5B
accent
#D04DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2B3287

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

Preview Lab → · Contrast checker → · Palette generator →

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