#2F3B95#2F3B95

#2F3B95 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.147 H 272.1°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2F3B95
RGBrgb(47, 59, 149)
HSLhsl(233, 52%, 38%)
HSVhsv(233, 68%, 58%)
CMYKcmyk(68.5%, 60.4%, 0%, 41.6%)
CIE-LABlab(29.16, 25.90, -51.02)
CIE-LCHlch(29.16, 57.21, 296.92°)
OKLaboklab(39.95% 0.0055 -0.147)
OKLCHoklch(39.95% 0.147 272.1)
XYZxyz(8.1592, 5.9014, 29.1370)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B95 #95892F
analogous
#2F6E95 #2F3B95 #562F95
triadic
#2F3B95 #952F3B #3B952F
tetradic
#2F3B95 #952F6E #95892F #2F9556
square
#2F3B95 #952F6E #95892F #2F9556
split-complementary
#2F3B95 #95562F #6E952F
monochromatic
#121638 #202966 #2F3B95 #3F4EC2 #6D79D1

Accessibility & contrast

On white

9.63
#2F3B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F3B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3B95
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3B95#FFFFFF#000000##FFFFFF
##2F3B951.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3b95;
/* rgb */ color: rgb(47, 59, 149);
/* oklch */ color: oklch(40.0% 0.147 272.1);
Tailwind
colors: {
  custom: {
    50: '#7570b5',
    500: '#2f3b95',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b95;
$custom-light: #7570b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b95",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 149
  },
  "hsl": {
    "h": 232.941,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3995,
    "c": 0.14708,
    "h": 272.1
  },
  "luminance": 0.05902
}

Semantic roles & 50–950 ramp

primary
#2F3B95
secondary
#B8AF67
accent
#CB4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3B95

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

Preview Lab → · Contrast checker → · Palette generator →

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