#2B2FB1#2B2FB1

#2B2FB1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.199 H 271.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2B2FB1
RGBrgb(43, 47, 177)
HSLhsl(238, 61%, 43%)
HSVhsv(238, 76%, 69%)
CMYKcmyk(75.7%, 73.4%, 0%, 30.6%)
CIE-LABlab(28.69, 42.97, -68.72)
CIE-LCHlch(28.69, 81.05, 302.02°)
OKLaboklab(40.34% 0.0064 -0.1989)
OKLCHoklch(40.34% 0.199 271.8)
XYZxyz(9.9459, 5.7199, 42.1663)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2FB1 #B1AD2B
analogous
#2B72B1 #2B2FB1 #6A2BB1
triadic
#2B2FB1 #B12B2F #2FB12B
tetradic
#2B2FB1 #B12B72 #B1AD2B #2BB16A
square
#2B2FB1 #B12B72 #B1AD2B #2BB16A
split-complementary
#2B2FB1 #B16A2B #72B12B
monochromatic
#13154F #1F2280 #2B2FB1 #474BD2 #787BDE

Accessibility & contrast

On white

9.79
#2B2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2B2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2FB1
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2FB1#FFFFFF#000000##FFFFFF
##2B2FB11.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b2fb1;
/* rgb */ color: rgb(43, 47, 177);
/* oklch */ color: oklch(40.3% 0.199 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b69ca',
    500: '#2b2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2b2fb1;
$custom-light: #7b69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2fb1",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 238.209,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40338,
    "c": 0.19902,
    "h": 271.8
  },
  "luminance": 0.05721
}

Semantic roles & 50–950 ramp

primary
#2B2FB1
secondary
#C6C472
accent
#DF44E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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