#2B3FA6#2B3FA6

#2B3FA6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.167 H 269.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2B3FA6
RGBrgb(43, 63, 166)
HSLhsl(230, 59%, 41%)
HSVhsv(230, 74%, 65%)
CMYKcmyk(74.1%, 62%, 0%, 34.9%)
CIE-LABlab(31.40, 29.00, -57.69)
CIE-LCHlch(31.40, 64.57, 296.69°)
OKLaboklab(41.99% -0.002 -0.1666)
OKLCHoklch(41.99% 0.167 269.3)
XYZxyz(9.6543, 6.8208, 36.8767)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3FA6 #A6922B
analogous
#2B7CA6 #2B3FA6 #542BA6
triadic
#2B3FA6 #A62B3F #3FA62B
tetradic
#2B3FA6 #A62B7C #A6922B #2BA654
square
#2B3FA6 #A62B7C #A6922B #2BA654
split-complementary
#2B3FA6 #A6542B #7CA62B
monochromatic
#121A45 #1E2D75 #2B3FA6 #4157CE #7182DA

Accessibility & contrast

On white

8.88
#2B3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2B3FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3FA6
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3FA6#FFFFFF#000000##FFFFFF
##2B3FA61.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b3fa6;
/* rgb */ color: rgb(43, 63, 166);
/* oklch */ color: oklch(42.0% 0.167 269.3);
Tailwind
colors: {
  custom: {
    50: '#7773c1',
    500: '#2b3fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2b3fa6;
$custom-light: #7773c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3fa6",
  "rgb": {
    "r": 43,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 230.244,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41987,
    "c": 0.16665,
    "h": 269.3
  },
  "luminance": 0.06822
}

Semantic roles & 50–950 ramp

primary
#2B3FA6
secondary
#C1B36B
accent
#C946E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B3FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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