#2F3C97#2F3C97

#2F3C97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.149 H 271.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2F3C97
RGBrgb(47, 60, 151)
HSLhsl(233, 53%, 39%)
HSVhsv(233, 69%, 59%)
CMYKcmyk(68.9%, 60.3%, 0%, 40.8%)
CIE-LABlab(29.59, 25.97, -51.55)
CIE-LCHlch(29.59, 57.72, 296.74°)
OKLaboklab(40.32% 0.0046 -0.1485)
OKLCHoklch(40.32% 0.149 271.8)
XYZxyz(8.3722, 6.0696, 30.0025)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C97 #978A2F
analogous
#2F7097 #2F3C97 #562F97
triadic
#2F3C97 #972F3C #3C972F
tetradic
#2F3C97 #972F70 #978A2F #2F9756
square
#2F3C97 #972F70 #978A2F #2F9756
split-complementary
#2F3C97 #97562F #70972F
monochromatic
#12173A #202968 #2F3C97 #4050C3 #6E7BD2

Accessibility & contrast

On white

9.49
#2F3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3C97
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C97#FFFFFF#000000##FFFFFF
##2F3C971.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3c97;
/* rgb */ color: rgb(47, 60, 151);
/* oklch */ color: oklch(40.3% 0.149 271.8);
Tailwind
colors: {
  custom: {
    50: '#7571b6',
    500: '#2f3c97',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c97;
$custom-light: #7571b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c97",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 232.5,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40317,
    "c": 0.1486,
    "h": 271.8
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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