#2B2F97#2B2F97

#2B2F97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.166 H 273.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2B2F97
RGBrgb(43, 47, 151)
HSLhsl(238, 56%, 38%)
HSVhsv(238, 72%, 59%)
CMYKcmyk(71.5%, 68.9%, 0%, 40.8%)
CIE-LABlab(26.10, 33.91, -57.26)
CIE-LCHlch(26.10, 66.55, 300.64°)
OKLaboklab(37.69% 0.01 -0.1655)
OKLCHoklch(37.69% 0.166 273.5)
XYZxyz(7.5968, 4.7803, 29.7945)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F97 #97932B
analogous
#2B6597 #2B2F97 #5D2B97
triadic
#2B2F97 #972B2F #2F972B
tetradic
#2B2F97 #972B65 #97932B #2B975D
square
#2B2F97 #972B65 #97932B #2B975D
split-complementary
#2B2F97 #975D2B #65972B
monochromatic
#101138 #1D2067 #2B2F97 #393EC7 #686CD4

Accessibility & contrast

On white

10.74
#2B2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2B2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F97
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F97#FFFFFF#000000##FFFFFF
##2B2F971.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b2f97;
/* rgb */ color: rgb(43, 47, 151);
/* oklch */ color: oklch(37.7% 0.166 273.5);
Tailwind
colors: {
  custom: {
    50: '#7468b7',
    500: '#2b2f97',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f97;
$custom-light: #7468b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f97",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 237.778,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37692,
    "c": 0.16578,
    "h": 273.5
  },
  "luminance": 0.04781
}

Semantic roles & 50–950 ramp

primary
#2B2F97
secondary
#BBB763
accent
#D949DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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