#2F3C95#2F3C95

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

Color values

HEX#2F3C95
RGBrgb(47, 60, 149)
HSLhsl(232, 52%, 38%)
HSVhsv(232, 68%, 58%)
CMYKcmyk(68.5%, 59.7%, 0%, 41.6%)
CIE-LABlab(29.43, 25.23, -50.59)
CIE-LCHlch(29.43, 56.53, 296.51°)
OKLaboklab(40.15% 0.0046 -0.1457)
OKLCHoklch(40.15% 0.146 271.8)
XYZxyz(8.2111, 6.0052, 29.1543)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C95 #95882F
analogous
#2F6F95 #2F3C95 #552F95
triadic
#2F3C95 #952F3C #3C952F
tetradic
#2F3C95 #952F6F #95882F #2F9555
square
#2F3C95 #952F6F #95882F #2F9555
split-complementary
#2F3C95 #95552F #6F952F
monochromatic
#121738 #202966 #2F3C95 #3F50C2 #6D7AD1

Accessibility & contrast

On white

9.54
#2F3C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F3C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C95
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C95#FFFFFF#000000##FFFFFF
##2F3C951.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3c95;
/* rgb */ color: rgb(47, 60, 149);
/* oklch */ color: oklch(40.1% 0.146 271.8);
Tailwind
colors: {
  custom: {
    50: '#7471b5',
    500: '#2f3c95',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c95;
$custom-light: #7471b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c95",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 149
  },
  "hsl": {
    "h": 232.353,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40146,
    "c": 0.14578,
    "h": 271.8
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#2F3C95
secondary
#B8AE67
accent
#C94CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3C95

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

Preview Lab → · Contrast checker → · Palette generator →

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