#2F3AB3#2F3AB3

#2F3AB3 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.189 H 271.4°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#2F3AB3
RGBrgb(47, 58, 179)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 74%, 70%)
CMYKcmyk(73.7%, 67.6%, 0%, 29.8%)
CIE-LABlab(31.54, 37.40, -65.22)
CIE-LCHlch(31.54, 75.18, 299.83°)
OKLaboklab(42.51% 0.0046 -0.1886)
OKLCHoklch(42.51% 0.189 271.4)
XYZxyz(10.8193, 6.8840, 43.3976)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AB3 #B3A82F
analogous
#2F7CB3 #2F3AB3 #662FB3
triadic
#2F3AB3 #B32F3A #3AB32F
tetradic
#2F3AB3 #B32F7C #B3A82F #2FB366
square
#2F3AB3 #B32F7C #B3A82F #2FB366
split-complementary
#2F3AB3 #B3662F #7CB32F
monochromatic
#161B52 #222A83 #2F3AB3 #4F59D1 #7F87DD

Accessibility & contrast

On white

8.83
#2F3AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2F3AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AB3
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AB3#FFFFFF#000000##FFFFFF
##2F3AB31.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3ab3;
/* rgb */ color: rgb(47, 58, 179);
/* oklch */ color: oklch(42.5% 0.189 271.4);
Tailwind
colors: {
  custom: {
    50: '#7c70cb',
    500: '#2f3ab3',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ab3;
$custom-light: #7c70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ab3",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 235,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42507,
    "c": 0.18868,
    "h": 271.4
  },
  "luminance": 0.06885
}

Semantic roles & 50–950 ramp

primary
#2F3AB3
secondary
#C6C078
accent
#D546E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F3AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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