#2F3F96#2F3F96

#2F3F96 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.143 H 270.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2F3F96
RGBrgb(47, 63, 150)
HSLhsl(231, 52%, 39%)
HSVhsv(231, 69%, 59%)
CMYKcmyk(68.7%, 58%, 0%, 41.2%)
CIE-LABlab(30.30, 23.59, -49.77)
CIE-LCHlch(30.30, 55.08, 295.36°)
OKLaboklab(40.83% 0.002 -0.1433)
OKLCHoklch(40.83% 0.143 270.8)
XYZxyz(8.4530, 6.3606, 29.6305)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F96 #96862F
analogous
#2F7296 #2F3F96 #522F96
triadic
#2F3F96 #962F3F #3F962F
tetradic
#2F3F96 #962F72 #96862F #2F9652
square
#2F3F96 #962F72 #96862F #2F9652
split-complementary
#2F3F96 #96522F #72962F
monochromatic
#121839 #202B67 #2F3F96 #3F54C3 #6E7DD2

Accessibility & contrast

On white

9.24
#2F3F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F3F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F96
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F96#FFFFFF#000000##FFFFFF
##2F3F961.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3f96;
/* rgb */ color: rgb(47, 63, 150);
/* oklch */ color: oklch(40.8% 0.143 270.8);
Tailwind
colors: {
  custom: {
    50: '#7473b6',
    500: '#2f3f96',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f96;
$custom-light: #7473b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f96",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 150
  },
  "hsl": {
    "h": 230.68,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40826,
    "c": 0.14328,
    "h": 270.8
  },
  "luminance": 0.06361
}

Semantic roles & 50–950 ramp

primary
#2F3F96
secondary
#B9AC68
accent
#C54CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3F96

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

Preview Lab → · Contrast checker → · Palette generator →

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