#2F3AB5#2F3AB5

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

Color values

HEX#2F3AB5
RGBrgb(47, 58, 181)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 74%, 71%)
CMYKcmyk(74%, 68%, 0%, 29%)
CIE-LABlab(31.73, 38.11, -66.10)
CIE-LCHlch(31.73, 76.30, 299.96°)
OKLaboklab(42.7% 0.0044 -0.1912)
OKLCHoklch(42.7% 0.191 271.3)
XYZxyz(11.0230, 6.9655, 44.4706)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AB5 #B5AA2F
analogous
#2F7DB5 #2F3AB5 #672FB5
triadic
#2F3AB5 #B52F3A #3AB52F
tetradic
#2F3AB5 #B52F7D #B5AA2F #2FB567
square
#2F3AB5 #B52F7D #B5AA2F #2FB567
split-complementary
#2F3AB5 #B5672F #7DB52F
monochromatic
#161B54 #222A84 #2F3AB5 #505AD1 #8088DE

Accessibility & contrast

On white

8.77
#2F3AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2F3AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AB5
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AB5#FFFFFF#000000##FFFFFF
##2F3AB51.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3ab5;
/* rgb */ color: rgb(47, 58, 181);
/* oklch */ color: oklch(42.7% 0.191 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c70cc',
    500: '#2f3ab5',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ab5;
$custom-light: #7c70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ab5",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 181
  },
  "hsl": {
    "h": 235.075,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42699,
    "c": 0.19124,
    "h": 271.3
  },
  "luminance": 0.06967
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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