#2B2F8A#2B2F8A

#2B2F8A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.148 H 274.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2B2F8A
RGBrgb(43, 47, 138)
HSLhsl(237, 52%, 35%)
HSVhsv(237, 69%, 54%)
CMYKcmyk(68.8%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.89, 29.24, -51.20)
CIE-LCHlch(24.89, 58.96, 299.73°)
OKLaboklab(36.44% 0.0113 -0.1477)
OKLCHoklch(36.44% 0.148 274.4)
XYZxyz(6.5987, 4.3810, 24.5377)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F8A #8A862B
analogous
#2B5E8A #2B2F8A #572B8A
triadic
#2B2F8A #8A2B2F #2F8A2B
tetradic
#2B2F8A #8A2B5E #8A862B #2B8A57
square
#2B2F8A #8A2B5E #8A862B #2B8A57
split-complementary
#2B2F8A #8A572B #5E8A2B
monochromatic
#0E0F2D #1C1F5B #2B2F8A #3A3FB9 #6166CE

Accessibility & contrast

On white

11.19
#2B2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2F8A
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F8A#FFFFFF#000000##FFFFFF
##2B2F8A1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b2f8a;
/* rgb */ color: rgb(43, 47, 138);
/* oklch */ color: oklch(36.4% 0.148 274.4);
Tailwind
colors: {
  custom: {
    50: '#7167ad',
    500: '#2b2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f8a;
$custom-light: #7167ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f8a",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 237.474,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36444,
    "c": 0.14817,
    "h": 274.4
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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