#2B2B8E#2B2B8E

#2B2B8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.158 H 275.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2B2B8E
RGBrgb(43, 43, 142)
HSLhsl(240, 54%, 36%)
HSVhsv(240, 70%, 56%)
CMYKcmyk(69.7%, 69.7%, 0%, 44.3%)
CIE-LABlab(24.30, 33.25, -54.66)
CIE-LCHlch(24.30, 63.98, 301.31°)
OKLaboklab(36.13% 0.0139 -0.1579)
OKLCHoklch(36.13% 0.158 275)
XYZxyz(6.7410, 4.1937, 26.0402)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B8E #8E8E2B
analogous
#2B5D8E #2B2B8E #5D2B8E
triadic
#2B2B8E #8E2B2B #2B8E2B
tetradic
#2B2B8E #8E2B5D #8E8E2B #2B8E5D
square
#2B2B8E #8E2B5D #8E8E2B #2B8E5D
split-complementary
#2B2B8E #8E5D2B #5D8E2B
monochromatic
#0F0F30 #1D1D5F #2B2B8E #3939BD #6363D0

Accessibility & contrast

On white

11.42
#2B2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B8E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B8E#FFFFFF#000000##FFFFFF
##2B2B8E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2b8e;
/* rgb */ color: rgb(43, 43, 142);
/* oklch */ color: oklch(36.1% 0.158 275.0);
Tailwind
colors: {
  custom: {
    50: '#7365b0',
    500: '#2b2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b8e;
$custom-light: #7365b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b8e",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 240,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36129,
    "c": 0.15848,
    "h": 275
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#2B2B8E
secondary
#B6B65F
accent
#DD4BDD
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2B2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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