#2F3FB1#2F3FB1

#2F3FB1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.180 H 270.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2F3FB1
RGBrgb(47, 63, 177)
HSLhsl(233, 58%, 44%)
HSVhsv(233, 73%, 69%)
CMYKcmyk(73.4%, 64.4%, 0%, 30.6%)
CIE-LABlab(32.55, 33.52, -62.37)
CIE-LCHlch(32.55, 70.81, 298.25°)
OKLaboklab(43.19% 0.0016 -0.1803)
OKLCHoklch(43.19% 0.18 270.5)
XYZxyz(10.8829, 7.3325, 42.4282)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FB1 #B1A12F
analogous
#2F80B1 #2F3FB1 #602FB1
triadic
#2F3FB1 #B12F3F #3FB12F
tetradic
#2F3FB1 #B12F80 #B1A12F #2FB160
square
#2F3FB1 #B12F80 #B1A12F #2FB160
split-complementary
#2F3FB1 #B1602F #80B12F
monochromatic
#151D50 #222E81 #2F3FB1 #4D5DD0 #7E89DD

Accessibility & contrast

On white

8.51
#2F3FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F3FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FB1
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FB1#FFFFFF#000000##FFFFFF
##2F3FB11.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f3fb1;
/* rgb */ color: rgb(47, 63, 177);
/* oklch */ color: oklch(43.2% 0.180 270.5);
Tailwind
colors: {
  custom: {
    50: '#7b74c9',
    500: '#2f3fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fb1;
$custom-light: #7b74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fb1",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 177
  },
  "hsl": {
    "h": 232.615,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.18027,
    "h": 270.5
  },
  "luminance": 0.07334
}

Semantic roles & 50–950 ramp

primary
#2F3FB1
secondary
#C5BC76
accent
#CE47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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