#2F3373#2F3373

#2F3373 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.5% C 0.108 H 276.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2F3373
RGBrgb(47, 51, 115)
HSLhsl(236, 42%, 32%)
HSVhsv(236, 59%, 45%)
CMYKcmyk(59.1%, 55.7%, 0%, 54.9%)
CIE-LABlab(24.35, 18.87, -37.57)
CIE-LCHlch(24.35, 42.05, 296.67°)
OKLaboklab(35.53% 0.0126 -0.1075)
OKLCHoklch(35.53% 0.108 276.7)
XYZxyz(5.4496, 4.2094, 16.7417)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3373 #736F2F
analogous
#2F5573 #2F3373 #4D2F73
triadic
#2F3373 #732F33 #33732F
tetradic
#2F3373 #732F55 #736F2F #2F734D
square
#2F3373 #732F55 #736F2F #2F734D
split-complementary
#2F3373 #734D2F #55732F
monochromatic
#0B0C1C #1D2048 #2F3373 #41469E #5F64BE

Accessibility & contrast

On white

11.40
#2F3373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F3373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3373
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3373#FFFFFF#000000##FFFFFF
##2F33731.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3D75
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#08424D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f3373;
/* rgb */ color: rgb(47, 51, 115);
/* oklch */ color: oklch(35.5% 0.108 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e6a9c',
    500: '#2f3373',
    950: '#000000',
  },
}
SCSS
$custom: #2f3373;
$custom-light: #6e6a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3373",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 115
  },
  "hsl": {
    "h": 236.471,
    "s": 41.975,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35527,
    "c": 0.10828,
    "h": 276.7
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#2F3373
secondary
#A4A05A
accent
#CB56D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3373

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

Preview Lab → · Contrast checker → · Palette generator →

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