#2B3381#2B3381

#2B3381 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.130 H 273.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2B3381
RGBrgb(43, 51, 129)
HSLhsl(234, 50%, 34%)
HSVhsv(234, 67%, 51%)
CMYKcmyk(66.7%, 60.5%, 0%, 49.4%)
CIE-LABlab(25.15, 23.24, -45.15)
CIE-LCHlch(25.15, 50.78, 297.24°)
OKLaboklab(36.4% 0.0081 -0.1299)
OKLCHoklch(36.4% 0.13 273.6)
XYZxyz(6.1412, 4.4657, 21.3030)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3381 #81792B
analogous
#2B5E81 #2B3381 #4E2B81
triadic
#2B3381 #812B33 #33812B
tetradic
#2B3381 #812B5E #81792B #2B814E
square
#2B3381 #812B5E #81792B #2B814E
split-complementary
#2B3381 #814E2B #5E812B
monochromatic
#0C0F25 #1C2153 #2B3381 #3A45AF #5D67C9

Accessibility & contrast

On white

11.09
#2B3381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2B3381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3381
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3381#FFFFFF#000000##FFFFFF
##2B33811.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b3381;
/* rgb */ color: rgb(43, 51, 129);
/* oklch */ color: oklch(36.4% 0.130 273.6);
Tailwind
colors: {
  custom: {
    50: '#6f6aa6',
    500: '#2b3381',
    950: '#000000',
  },
}
SCSS
$custom: #2b3381;
$custom-light: #6f6aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3381",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 234.419,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36396,
    "c": 0.13018,
    "h": 273.6
  },
  "luminance": 0.04466
}

Semantic roles & 50–950 ramp

primary
#2B3381
secondary
#AFA759
accent
#CD4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2B3381

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

Preview Lab → · Contrast checker → · Palette generator →

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