#2F2B8A#2F2B8A

#2F2B8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.152 H 277.4°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2F2B8A
RGBrgb(47, 43, 138)
HSLhsl(243, 52%, 35%)
HSVhsv(243, 69%, 54%)
CMYKcmyk(65.9%, 68.8%, 0%, 45.9%)
CIE-LABlab(24.21, 32.40, -52.30)
CIE-LCHlch(24.21, 61.53, 301.78°)
OKLaboklab(36.03% 0.0196 -0.1509)
OKLCHoklch(36.03% 0.152 277.4)
XYZxyz(6.6221, 4.1665, 24.4951)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B8A #868A2B
analogous
#2B578A #2F2B8A #5E2B8A
triadic
#2F2B8A #8A2F2B #2B8A2F
tetradic
#2F2B8A #8A2B57 #868A2B #2B8A5E
square
#2F2B8A #8A2B57 #868A2B #2B8A5E
split-complementary
#2F2B8A #8A5E2B #578A2B
monochromatic
#0F0E2D #1F1C5B #2F2B8A #3F3AB9 #6661CE

Accessibility & contrast

On white

11.45
#2F2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B8A
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B8A#FFFFFF#000000##FFFFFF
##2F2B8A1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2b8a;
/* rgb */ color: rgb(47, 43, 138);
/* oklch */ color: oklch(36.0% 0.152 277.4);
Tailwind
colors: {
  custom: {
    50: '#7465ad',
    500: '#2f2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b8a;
$custom-light: #7465ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b8a",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 242.526,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36025,
    "c": 0.15214,
    "h": 277.4
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#2F2B8A
secondary
#B0B45D
accent
#DC4CD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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