#2F3DB1#2F3DB1

#2F3DB1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.183 H 270.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2F3DB1
RGBrgb(47, 61, 177)
HSLhsl(234, 58%, 44%)
HSVhsv(234, 73%, 69%)
CMYKcmyk(73.4%, 65.5%, 0%, 30.6%)
CIE-LABlab(32.07, 34.80, -63.17)
CIE-LCHlch(32.07, 72.12, 298.85°)
OKLaboklab(42.83% 0.0029 -0.1826)
OKLCHoklch(42.83% 0.183 270.9)
XYZxyz(10.7741, 7.1150, 42.3920)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DB1 #B1A32F
analogous
#2F7EB1 #2F3DB1 #622FB1
triadic
#2F3DB1 #B12F3D #3DB12F
tetradic
#2F3DB1 #B12F7E #B1A32F #2FB162
square
#2F3DB1 #B12F7E #B1A32F #2FB162
split-complementary
#2F3DB1 #B1622F #7EB12F
monochromatic
#151C50 #222C81 #2F3DB1 #4D5BD0 #7E88DD

Accessibility & contrast

On white

8.67
#2F3DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F3DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DB1
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DB1#FFFFFF#000000##FFFFFF
##2F3DB11.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3db1;
/* rgb */ color: rgb(47, 61, 177);
/* oklch */ color: oklch(42.8% 0.183 270.9);
Tailwind
colors: {
  custom: {
    50: '#7b72c9',
    500: '#2f3db1',
    950: '#000000',
  },
}
SCSS
$custom: #2f3db1;
$custom-light: #7b72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3db1",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 177
  },
  "hsl": {
    "h": 233.538,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42834,
    "c": 0.18262,
    "h": 270.9
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#2F3DB1
secondary
#C5BD76
accent
#D147E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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