#2B3A8D#2B3A8D

#2B3A8D is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.138 H 270.8°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2B3A8D
RGBrgb(43, 58, 141)
HSLhsl(231, 53%, 36%)
HSVhsv(231, 70%, 55%)
CMYKcmyk(69.5%, 58.9%, 0%, 44.7%)
CIE-LABlab(28.01, 22.98, -47.98)
CIE-LCHlch(28.01, 53.19, 295.59°)
OKLaboklab(38.83% 0.0019 -0.1382)
OKLCHoklch(38.83% 0.138 270.8)
XYZxyz(7.3154, 5.4621, 25.8629)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3A8D #8D7E2B
analogous
#2B6B8D #2B3A8D #4D2B8D
triadic
#2B3A8D #8D2B3A #3A8D2B
tetradic
#2B3A8D #8D2B6B #8D7E2B #2B8D4D
square
#2B3A8D #8D2B6B #8D7E2B #2B8D4D
split-complementary
#2B3A8D #8D4D2B #6B8D2B
monochromatic
#0E132F #1D275E #2B3A8D #394DBC #6374CF

Accessibility & contrast

On white

10.04
#2B3A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2B3A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3A8D
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3A8D#FFFFFF#000000##FFFFFF
##2B3A8D1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b3a8d;
/* rgb */ color: rgb(43, 58, 141);
/* oklch */ color: oklch(38.8% 0.138 270.8);
Tailwind
colors: {
  custom: {
    50: '#7170af',
    500: '#2b3a8d',
    950: '#000000',
  },
}
SCSS
$custom: #2b3a8d;
$custom-light: #7170af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3a8d",
  "rgb": {
    "r": 43,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 230.816,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38828,
    "c": 0.13817,
    "h": 270.8
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#2B3A8D
secondary
#B6A85E
accent
#C64BDD
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2B3A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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