#2F3474#2F3474

#2F3474 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.108 H 276.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2F3474
RGBrgb(47, 52, 116)
HSLhsl(236, 42%, 32%)
HSVhsv(236, 59%, 45%)
CMYKcmyk(59.5%, 55.2%, 0%, 54.5%)
CIE-LABlab(24.71, 18.55, -37.64)
CIE-LCHlch(24.71, 41.96, 296.23°)
OKLaboklab(35.82% 0.0115 -0.1077)
OKLCHoklch(35.82% 0.108 276.1)
XYZxyz(5.5517, 4.3209, 17.0611)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3474 #746F2F
analogous
#2F5774 #2F3474 #4D2F74
triadic
#2F3474 #742F34 #34742F
tetradic
#2F3474 #742F57 #746F2F #2F744D
square
#2F3474 #742F57 #746F2F #2F744D
split-complementary
#2F3474 #744D2F #57742F
monochromatic
#0C0D1D #1D2048 #2F3474 #4148A0 #5F66BE

Accessibility & contrast

On white

11.26
#2F3474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F3474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3474
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3474#FFFFFF#000000##FFFFFF
##2F34741.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3E76
Deuteranopia (green-blind)
#013873
Tritanopia (blue-blind)
#06434E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f3474;
/* rgb */ color: rgb(47, 52, 116);
/* oklch */ color: oklch(35.8% 0.108 276.1);
Tailwind
colors: {
  custom: {
    50: '#6e6b9c',
    500: '#2f3474',
    950: '#000000',
  },
}
SCSS
$custom: #2f3474;
$custom-light: #6e6b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3474",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 116
  },
  "hsl": {
    "h": 235.652,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35815,
    "c": 0.10834,
    "h": 276.1
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#2F3474
secondary
#A5A05A
accent
#C956D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3474

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

Preview Lab → · Contrast checker → · Palette generator →

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