#2F3AB6#2F3AB6

#2F3AB6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.193 H 271.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2F3AB6
RGBrgb(47, 58, 182)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 74%, 71%)
CMYKcmyk(74.2%, 68.1%, 0%, 28.6%)
CIE-LABlab(31.82, 38.46, -66.54)
CIE-LCHlch(31.82, 76.85, 300.03°)
OKLaboklab(42.8% 0.0043 -0.1925)
OKLCHoklch(42.8% 0.193 271.3)
XYZxyz(11.1260, 7.0067, 45.0130)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AB6 #B6AB2F
analogous
#2F7EB6 #2F3AB6 #672FB6
triadic
#2F3AB6 #B62F3A #3AB62F
tetradic
#2F3AB6 #B62F7E #B6AB2F #2FB667
square
#2F3AB6 #B62F7E #B6AB2F #2FB667
split-complementary
#2F3AB6 #B6672F #7EB62F
monochromatic
#161B55 #222A85 #2F3AB6 #505BD2 #8189DE

Accessibility & contrast

On white

8.74
#2F3AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F3AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AB6
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AB6#FFFFFF#000000##FFFFFF
##2F3AB61.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#0044B4
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3ab6;
/* rgb */ color: rgb(47, 58, 182);
/* oklch */ color: oklch(42.8% 0.193 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c70cd',
    500: '#2f3ab6',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ab6;
$custom-light: #7c70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ab6",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 235.111,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42796,
    "c": 0.19253,
    "h": 271.3
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#2F3AB6
secondary
#C7C179
accent
#D546E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F3AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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