#2B2F88#2B2F88

#2B2F88 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.145 H 274.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2B2F88
RGBrgb(43, 47, 136)
HSLhsl(237, 52%, 35%)
HSVhsv(237, 68%, 53%)
CMYKcmyk(68.4%, 65.4%, 0%, 46.7%)
CIE-LABlab(24.71, 28.51, -50.25)
CIE-LCHlch(24.71, 57.77, 299.57°)
OKLaboklab(36.26% 0.0114 -0.1449)
OKLCHoklch(36.26% 0.145 274.5)
XYZxyz(6.4552, 4.3236, 23.7821)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F88 #88842B
analogous
#2B5E88 #2B2F88 #552B88
triadic
#2B2F88 #882B2F #2F882B
tetradic
#2B2F88 #882B5E #88842B #2B8855
square
#2B2F88 #882B5E #88842B #2B8855
split-complementary
#2B2F88 #88552B #5E882B
monochromatic
#0E0F2B #1C1F5A #2B2F88 #3A3FB6 #6165CD

Accessibility & contrast

On white

11.26
#2B2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B2F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F88
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F88#FFFFFF#000000##FFFFFF
##2B2F881.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b2f88;
/* rgb */ color: rgb(43, 47, 136);
/* oklch */ color: oklch(36.3% 0.145 274.5);
Tailwind
colors: {
  custom: {
    50: '#7167ac',
    500: '#2b2f88',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f88;
$custom-light: #7167ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f88",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 237.419,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36257,
    "c": 0.1454,
    "h": 274.5
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#2B2F88
secondary
#B3AF5C
accent
#D54CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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