#2F3F8F#2F3F8F

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

Color values

HEX#2F3F8F
RGBrgb(47, 63, 143)
HSLhsl(230, 51%, 37%)
HSVhsv(230, 67%, 56%)
CMYKcmyk(67.1%, 55.9%, 0%, 43.9%)
CIE-LABlab(29.77, 20.99, -46.35)
CIE-LCHlch(29.77, 50.88, 294.36°)
OKLaboklab(40.25% 0.0017 -0.1332)
OKLCHoklch(40.25% 0.133 270.7)
XYZxyz(7.9060, 6.1418, 26.7501)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F8F #8F7F2F
analogous
#2F6F8F #2F3F8F #4F2F8F
triadic
#2F3F8F #8F2F3F #3F8F2F
tetradic
#2F3F8F #8F2F6F #8F7F2F #2F8F4F
square
#2F3F8F #8F2F6F #8F7F2F #2F8F4F
split-complementary
#2F3F8F #8F4F2F #6F8F2F
monochromatic
#111633 #202B61 #2F3F8F #3E53BD #6A7BCE

Accessibility & contrast

On white

9.42
#2F3F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F3F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F8F
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F8F#FFFFFF#000000##FFFFFF
##2F3F8F1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014B92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3f8f;
/* rgb */ color: rgb(47, 63, 143);
/* oklch */ color: oklch(40.3% 0.133 270.7);
Tailwind
colors: {
  custom: {
    50: '#7373b0',
    500: '#2f3f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f8f;
$custom-light: #7373b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f8f",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 230,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40254,
    "c": 0.13323,
    "h": 270.7
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#2F3F8F
secondary
#B5A865
accent
#C34EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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