#2B2F71#2B2F71

#2B2F71 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.2% C 0.112 H 276.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2B2F71
RGBrgb(43, 47, 113)
HSLhsl(237, 45%, 31%)
HSVhsv(237, 62%, 44%)
CMYKcmyk(61.9%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.79, 20.07, -38.84)
CIE-LCHlch(22.79, 43.71, 297.32°)
OKLaboklab(34.23% 0.012 -0.1114)
OKLCHoklch(34.23% 0.112 276.1)
XYZxyz(4.9924, 3.7385, 16.0781)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F71 #716D2B
analogous
#2B5271 #2B2F71 #4A2B71
triadic
#2B2F71 #712B2F #2F712B
tetradic
#2B2F71 #712B52 #716D2B #2B714A
square
#2B2F71 #712B52 #716D2B #2B714A
split-complementary
#2B2F71 #714A2B #52712B
monochromatic
#090A18 #1A1D45 #2B2F71 #3C419D #575DBF

Accessibility & contrast

On white

12.02
#2B2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F71
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F71#FFFFFF#000000##FFFFFF
##2B2F711.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2f71;
/* rgb */ color: rgb(43, 47, 113);
/* oklch */ color: oklch(34.2% 0.112 276.1);
Tailwind
colors: {
  custom: {
    50: '#6c679a',
    500: '#2b2f71',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f71;
$custom-light: #6c679a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f71",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 236.571,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34231,
    "c": 0.11205,
    "h": 276.1
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#2B2F71
secondary
#A39E55
accent
#CD53D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2B2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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