#2B3EA6#2B3EA6

#2B3EA6 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.168 H 269.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2B3EA6
RGBrgb(43, 62, 166)
HSLhsl(231, 59%, 41%)
HSVhsv(231, 74%, 65%)
CMYKcmyk(74.1%, 62.7%, 0%, 34.9%)
CIE-LABlab(31.14, 29.66, -58.11)
CIE-LCHlch(31.14, 65.24, 297.04°)
OKLaboklab(41.8% -0.0013 -0.1679)
OKLCHoklch(41.8% 0.168 269.6)
XYZxyz(9.5995, 6.7110, 36.8584)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3EA6 #A6932B
analogous
#2B7BA6 #2B3EA6 #552BA6
triadic
#2B3EA6 #A62B3E #3EA62B
tetradic
#2B3EA6 #A62B7B #A6932B #2BA655
square
#2B3EA6 #A62B7B #A6932B #2BA655
split-complementary
#2B3EA6 #A6552B #7BA62B
monochromatic
#121A45 #1E2C75 #2B3EA6 #4156CE #7181DA

Accessibility & contrast

On white

8.97
#2B3EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2B3EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3EA6
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3EA6#FFFFFF#000000##FFFFFF
##2B3EA61.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b3ea6;
/* rgb */ color: rgb(43, 62, 166);
/* oklch */ color: oklch(41.8% 0.168 269.6);
Tailwind
colors: {
  custom: {
    50: '#7773c1',
    500: '#2b3ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2b3ea6;
$custom-light: #7773c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3ea6",
  "rgb": {
    "r": 43,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 230.732,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41798,
    "c": 0.16788,
    "h": 269.6
  },
  "luminance": 0.06712
}

Semantic roles & 50–950 ramp

primary
#2B3EA6
secondary
#C1B46B
accent
#CA46E2
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B3EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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