#2B2FAA#2B2FAA

#2B2FAA is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.190 H 272.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2B2FAA
RGBrgb(43, 47, 170)
HSLhsl(238, 60%, 42%)
HSVhsv(238, 75%, 67%)
CMYKcmyk(74.7%, 72.4%, 0%, 33.3%)
CIE-LABlab(27.97, 40.57, -65.71)
CIE-LCHlch(27.97, 77.23, 301.69°)
OKLaboklab(39.61% 0.0075 -0.1902)
OKLCHoklch(39.61% 0.19 272.2)
XYZxyz(9.2660, 5.4479, 38.5856)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2FAA #AAA62B
analogous
#2B6FAA #2B2FAA #672BAA
triadic
#2B2FAA #AA2B2F #2FAA2B
tetradic
#2B2FAA #AA2B6F #AAA62B #2BAA67
square
#2B2FAA #AA2B6F #AAA62B #2BAA67
split-complementary
#2B2FAA #AA672B #6FAA2B
monochromatic
#121448 #1F2179 #2B2FAA #4347CF #7477DC

Accessibility & contrast

On white

10.05
#2B2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2B2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2FAA
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2FAA#FFFFFF#000000##FFFFFF
##2B2FAA1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b2faa;
/* rgb */ color: rgb(43, 47, 170);
/* oklch */ color: oklch(39.6% 0.190 272.2);
Tailwind
colors: {
  custom: {
    50: '#7969c4',
    500: '#2b2faa',
    950: '#000000',
  },
}
SCSS
$custom: #2b2faa;
$custom-light: #7969c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2faa",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 238.11,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39609,
    "c": 0.1903,
    "h": 272.2
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#2B2FAA
secondary
#C3C16E
accent
#DE45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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