#2F3F97#2F3F97

#2F3F97 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.145 H 270.8°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2F3F97
RGBrgb(47, 63, 151)
HSLhsl(231, 53%, 39%)
HSVhsv(231, 69%, 59%)
CMYKcmyk(68.9%, 58.3%, 0%, 40.8%)
CIE-LABlab(30.38, 23.97, -50.25)
CIE-LCHlch(30.38, 55.68, 295.50°)
OKLaboklab(40.91% 0.002 -0.1447)
OKLCHoklch(40.91% 0.145 270.8)
XYZxyz(8.5338, 6.3929, 30.0564)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F97 #97872F
analogous
#2F7397 #2F3F97 #532F97
triadic
#2F3F97 #972F3F #3F972F
tetradic
#2F3F97 #972F73 #97872F #2F9753
square
#2F3F97 #972F73 #97872F #2F9753
split-complementary
#2F3F97 #97532F #73972F
monochromatic
#12183A #202C68 #2F3F97 #4054C3 #6E7ED2

Accessibility & contrast

On white

9.22
#2F3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F97
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F97#FFFFFF#000000##FFFFFF
##2F3F971.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3f97;
/* rgb */ color: rgb(47, 63, 151);
/* oklch */ color: oklch(40.9% 0.145 270.8);
Tailwind
colors: {
  custom: {
    50: '#7573b6',
    500: '#2f3f97',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f97;
$custom-light: #7573b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f97",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 230.769,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40909,
    "c": 0.1447,
    "h": 270.8
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#2F3F97
secondary
#B9AD68
accent
#C64CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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