#2F3873#2F3873

#2F3873 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.6% C 0.101 H 273.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2F3873
RGBrgb(47, 56, 115)
HSLhsl(232, 42%, 32%)
HSVhsv(232, 59%, 45%)
CMYKcmyk(59.1%, 51.3%, 0%, 54.9%)
CIE-LABlab(25.77, 15.42, -35.29)
CIE-LCHlch(25.77, 38.51, 293.61°)
OKLaboklab(36.6% 0.0067 -0.1008)
OKLCHoklch(36.6% 0.101 273.8)
XYZxyz(5.6800, 4.6701, 16.8184)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3873 #736A2F
analogous
#2F5A73 #2F3873 #482F73
triadic
#2F3873 #732F38 #38732F
tetradic
#2F3873 #732F5A #736A2F #2F7348
square
#2F3873 #732F5A #736A2F #2F7348
split-complementary
#2F3873 #73482F #5A732F
monochromatic
#0B0E1C #1D2348 #2F3873 #414D9E #5F6BBE

Accessibility & contrast

On white

10.86
#2F3873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F3873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3873
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3873#FFFFFF#000000##FFFFFF
##2F38731.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4075
Deuteranopia (green-blind)
#113A72
Tritanopia (blue-blind)
#074550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f3873;
/* rgb */ color: rgb(47, 56, 115);
/* oklch */ color: oklch(36.6% 0.101 273.8);
Tailwind
colors: {
  custom: {
    50: '#6e6e9c',
    500: '#2f3873',
    950: '#000000',
  },
}
SCSS
$custom: #2f3873;
$custom-light: #6e6e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3873",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 115
  },
  "hsl": {
    "h": 232.059,
    "s": 41.975,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36598,
    "c": 0.10099,
    "h": 273.8
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

primary
#2F3873
secondary
#A49A5A
accent
#C156D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2F3873

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

Preview Lab → · Contrast checker → · Palette generator →

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