#2F3C96#2F3C96

#2F3C96 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.147 H 271.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2F3C96
RGBrgb(47, 60, 150)
HSLhsl(232, 52%, 39%)
HSVhsv(232, 69%, 59%)
CMYKcmyk(68.7%, 60%, 0%, 41.2%)
CIE-LABlab(29.51, 25.60, -51.07)
CIE-LCHlch(29.51, 57.13, 296.63°)
OKLaboklab(40.23% 0.0046 -0.1471)
OKLCHoklch(40.23% 0.147 271.8)
XYZxyz(8.2913, 6.0373, 29.5766)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C96 #96892F
analogous
#2F6F96 #2F3C96 #552F96
triadic
#2F3C96 #962F3C #3C962F
tetradic
#2F3C96 #962F6F #96892F #2F9655
square
#2F3C96 #962F6F #96892F #2F9655
split-complementary
#2F3C96 #96552F #6F962F
monochromatic
#121739 #202967 #2F3C96 #3F50C3 #6E7AD2

Accessibility & contrast

On white

9.51
#2F3C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F3C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C96
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C96#FFFFFF#000000##FFFFFF
##2F3C961.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3c96;
/* rgb */ color: rgb(47, 60, 150);
/* oklch */ color: oklch(40.2% 0.147 271.8);
Tailwind
colors: {
  custom: {
    50: '#7571b6',
    500: '#2f3c96',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c96;
$custom-light: #7571b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c96",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 150
  },
  "hsl": {
    "h": 232.427,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40231,
    "c": 0.14719,
    "h": 271.8
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#2F3C96
secondary
#B9AF68
accent
#CA4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3C96

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

Preview Lab → · Contrast checker → · Palette generator →

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