#2B2F74#2B2F74

#2B2F74 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.117 H 275.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2B2F74
RGBrgb(43, 47, 116)
HSLhsl(237, 46%, 31%)
HSVhsv(237, 63%, 45%)
CMYKcmyk(62.9%, 59.5%, 0%, 54.5%)
CIE-LABlab(23.02, 21.17, -40.38)
CIE-LCHlch(23.02, 45.59, 297.67°)
OKLaboklab(34.48% 0.012 -0.1159)
OKLCHoklch(34.48% 0.117 275.9)
XYZxyz(5.1641, 3.8072, 16.9823)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F74 #74702B
analogous
#2B5374 #2B2F74 #4B2B74
triadic
#2B2F74 #742B2F #2F742B
tetradic
#2B2F74 #742B53 #74702B #2B744B
square
#2B2F74 #742B53 #74702B #2B744B
split-complementary
#2B2F74 #744B2B #53742B
monochromatic
#0A0B1B #1A1D47 #2B2F74 #3C41A1 #585EC1

Accessibility & contrast

On white

11.92
#2B2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2B2F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F74
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F74#FFFFFF#000000##FFFFFF
##2B2F741.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b2f74;
/* rgb */ color: rgb(43, 47, 116);
/* oklch */ color: oklch(34.5% 0.117 275.9);
Tailwind
colors: {
  custom: {
    50: '#6d679d',
    500: '#2b2f74',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f74;
$custom-light: #6d679d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f74",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 236.712,
    "s": 45.912,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34482,
    "c": 0.11655,
    "h": 275.9
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#2B2F74
secondary
#A6A155
accent
#CE52D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2B2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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