#2F3BAB#2F3BAB

#2F3BAB is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.9% C 0.177 H 271.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F3BAB
RGBrgb(47, 59, 171)
HSLhsl(234, 57%, 43%)
HSVhsv(234, 73%, 67%)
CMYKcmyk(72.5%, 65.5%, 0%, 32.9%)
CIE-LABlab(31.05, 33.92, -61.26)
CIE-LCHlch(31.05, 70.02, 298.97°)
OKLaboklab(41.92% 0.0046 -0.177)
OKLCHoklch(41.92% 0.177 271.5)
XYZxyz(10.0845, 6.6715, 39.2764)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BAB #AB9F2F
analogous
#2F79AB #2F3BAB #612FAB
triadic
#2F3BAB #AB2F3B #3BAB2F
tetradic
#2F3BAB #AB2F79 #AB9F2F #2FAB61
square
#2F3BAB #AB2F79 #AB9F2F #2FAB61
split-complementary
#2F3BAB #AB612F #79AB2F
monochromatic
#151A4B #222A7B #2F3BAB #4A57CD #7A83DA

Accessibility & contrast

On white

9.00
#2F3BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F3BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3BAB
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BAB#FFFFFF#000000##FFFFFF
##2F3BAB1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3bab;
/* rgb */ color: rgb(47, 59, 171);
/* oklch */ color: oklch(41.9% 0.177 271.5);
Tailwind
colors: {
  custom: {
    50: '#7a71c5',
    500: '#2f3bab',
    950: '#000000',
  },
}
SCSS
$custom: #2f3bab;
$custom-light: #7a71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3bab",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 171
  },
  "hsl": {
    "h": 234.194,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41923,
    "c": 0.17708,
    "h": 271.5
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#2F3BAB
secondary
#C3BB73
accent
#D148E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F3BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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