#2B3FAB#2B3FAB

#2B3FAB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.173 H 269.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2B3FAB
RGBrgb(43, 63, 171)
HSLhsl(231, 60%, 42%)
HSVhsv(231, 75%, 67%)
CMYKcmyk(74.9%, 63.2%, 0%, 32.9%)
CIE-LABlab(31.82, 30.86, -59.99)
CIE-LCHlch(31.82, 67.46, 297.22°)
OKLaboklab(42.44% -0.0021 -0.1734)
OKLCHoklch(42.44% 0.173 269.3)
XYZxyz(10.1219, 7.0078, 39.3394)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3FAB #AB972B
analogous
#2B7FAB #2B3FAB #572BAB
triadic
#2B3FAB #AB2B3F #3FAB2B
tetradic
#2B3FAB #AB2B7F #AB972B #2BAB57
square
#2B3FAB #AB2B7F #AB972B #2BAB57
split-complementary
#2B3FAB #AB572B #7FAB2B
monochromatic
#121B49 #1F2D7A #2B3FAB #4359D0 #7485DC

Accessibility & contrast

On white

8.74
#2B3FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2B3FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3FAB
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3FAB#FFFFFF#000000##FFFFFF
##2B3FAB1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b3fab;
/* rgb */ color: rgb(43, 63, 171);
/* oklch */ color: oklch(42.4% 0.173 269.3);
Tailwind
colors: {
  custom: {
    50: '#7874c5',
    500: '#2b3fab',
    950: '#000000',
  },
}
SCSS
$custom: #2b3fab;
$custom-light: #7874c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3fab",
  "rgb": {
    "r": 43,
    "g": 63,
    "b": 171
  },
  "hsl": {
    "h": 230.625,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42437,
    "c": 0.17338,
    "h": 269.3
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#2B3FAB
secondary
#C4B66E
accent
#CA45E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B3FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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