#2F3AB7#2F3AB7

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

Color values

HEX#2F3AB7
RGBrgb(47, 58, 183)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 74%, 72%)
CMYKcmyk(74.3%, 68.3%, 0%, 28.2%)
CIE-LABlab(31.92, 38.81, -66.98)
CIE-LCHlch(31.92, 77.41, 300.09°)
OKLaboklab(42.89% 0.0042 -0.1937)
OKLCHoklch(42.89% 0.194 271.3)
XYZxyz(11.2297, 7.0482, 45.5592)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AB7 #B7AC2F
analogous
#2F7EB7 #2F3AB7 #682FB7
triadic
#2F3AB7 #B72F3A #3AB72F
tetradic
#2F3AB7 #B72F7E #B7AC2F #2FB768
square
#2F3AB7 #B72F7E #B7AC2F #2FB768
split-complementary
#2F3AB7 #B7682F #7EB72F
monochromatic
#161B56 #222B86 #2F3AB7 #515BD2 #8289DF

Accessibility & contrast

On white

8.71
#2F3AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F3AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AB7
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AB7#FFFFFF#000000##FFFFFF
##2F3AB71.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0045B5
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3ab7;
/* rgb */ color: rgb(47, 58, 183);
/* oklch */ color: oklch(42.9% 0.194 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c70ce',
    500: '#2f3ab7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ab7;
$custom-light: #7c70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ab7",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 183
  },
  "hsl": {
    "h": 235.147,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42893,
    "c": 0.1938,
    "h": 271.3
  },
  "luminance": 0.07049
}

Semantic roles & 50–950 ramp

primary
#2F3AB7
secondary
#C8C27A
accent
#D645E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F3AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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