#2F3CB4#2F3CB4

#2F3CB4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.188 H 271.0°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#2F3CB4
RGBrgb(47, 60, 180)
HSLhsl(234, 59%, 45%)
HSVhsv(234, 74%, 71%)
CMYKcmyk(73.9%, 66.7%, 0%, 29.4%)
CIE-LABlab(32.10, 36.50, -64.89)
CIE-LCHlch(32.10, 74.45, 299.36°)
OKLaboklab(42.94% 0.0033 -0.1877)
OKLCHoklch(42.94% 0.188 271)
XYZxyz(11.0236, 7.1302, 43.9665)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3CB4 #B4A72F
analogous
#2F7FB4 #2F3CB4 #642FB4
triadic
#2F3CB4 #B42F3C #3CB42F
tetradic
#2F3CB4 #B42F7F #B4A72F #2FB464
square
#2F3CB4 #B42F7F #B4A72F #2FB464
split-complementary
#2F3CB4 #B4642F #7FB42F
monochromatic
#161C53 #222C83 #2F3CB4 #4F5CD1 #8089DE

Accessibility & contrast

On white

8.66
#2F3CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F3CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3CB4
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3CB4#FFFFFF#000000##FFFFFF
##2F3CB41.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f3cb4;
/* rgb */ color: rgb(47, 60, 180);
/* oklch */ color: oklch(42.9% 0.188 271.0);
Tailwind
colors: {
  custom: {
    50: '#7c72cc',
    500: '#2f3cb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f3cb4;
$custom-light: #7c72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3cb4",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 180
  },
  "hsl": {
    "h": 234.135,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42943,
    "c": 0.18769,
    "h": 271
  },
  "luminance": 0.07131
}

Semantic roles & 50–950 ramp

primary
#2F3CB4
secondary
#C7BF78
accent
#D346E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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