#2B2F8B#2B2F8B

#2B2F8B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.150 H 274.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2B2F8B
RGBrgb(43, 47, 139)
HSLhsl(238, 53%, 36%)
HSVhsv(238, 69%, 55%)
CMYKcmyk(69.1%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.98, 29.60, -51.68)
CIE-LCHlch(24.98, 59.55, 299.80°)
OKLaboklab(36.54% 0.0112 -0.1491)
OKLCHoklch(36.54% 0.15 274.3)
XYZxyz(6.6714, 4.4101, 24.9207)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F8B #8B872B
analogous
#2B5F8B #2B2F8B #572B8B
triadic
#2B2F8B #8B2B2F #2F8B2B
tetradic
#2B2F8B #8B2B5F #8B872B #2B8B57
square
#2B2F8B #8B2B5F #8B872B #2B8B57
split-complementary
#2B2F8B #8B572B #5F8B2B
monochromatic
#0E0F2E #1D1F5C #2B2F8B #393FBA #6266CE

Accessibility & contrast

On white

11.16
#2B2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2B2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F8B
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F8B#FFFFFF#000000##FFFFFF
##2B2F8B1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b2f8b;
/* rgb */ color: rgb(43, 47, 139);
/* oklch */ color: oklch(36.5% 0.150 274.3);
Tailwind
colors: {
  custom: {
    50: '#7268ae',
    500: '#2b2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f8b;
$custom-light: #7268ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f8b",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 237.5,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36538,
    "c": 0.14955,
    "h": 274.3
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#2B2F8B
secondary
#B5B15D
accent
#D64CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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