#2F3096#2F3096

#2F3096 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.162 H 275.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2F3096
RGBrgb(47, 48, 150)
HSLhsl(239, 52%, 39%)
HSVhsv(239, 69%, 59%)
CMYKcmyk(68.7%, 68%, 0%, 41.2%)
CIE-LABlab(26.50, 33.44, -55.97)
CIE-LCHlch(26.50, 65.20, 300.86°)
OKLaboklab(38.03% 0.0143 -0.1616)
OKLCHoklch(38.03% 0.162 275)
XYZxyz(7.7324, 4.9196, 29.3903)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3096 #96952F
analogous
#2F6396 #2F3096 #612F96
triadic
#2F3096 #962F30 #30962F
tetradic
#2F3096 #962F63 #96952F #2F9661
square
#2F3096 #962F63 #96952F #2F9661
split-complementary
#2F3096 #96612F #63962F
monochromatic
#121239 #202167 #2F3096 #3F41C3 #6E6FD2

Accessibility & contrast

On white

10.58
#2F3096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F3096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3096
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3096#FFFFFF#000000##FFFFFF
##2F30961.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3096;
/* rgb */ color: rgb(47, 48, 150);
/* oklch */ color: oklch(38.0% 0.162 275.0);
Tailwind
colors: {
  custom: {
    50: '#7669b6',
    500: '#2f3096',
    950: '#000000',
  },
}
SCSS
$custom: #2f3096;
$custom-light: #7669b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3096",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 150
  },
  "hsl": {
    "h": 239.417,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38026,
    "c": 0.16223,
    "h": 275
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#2F3096
secondary
#B9B868
accent
#DA4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3096

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

Preview Lab → · Contrast checker → · Palette generator →

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