#2F3072#2F3072

#2F3072 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.111 H 278.3°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#2F3072
RGBrgb(47, 48, 114)
HSLhsl(239, 42%, 32%)
HSVhsv(239, 59%, 45%)
CMYKcmyk(58.8%, 57.9%, 0%, 55.3%)
CIE-LABlab(23.45, 20.57, -38.39)
CIE-LCHlch(23.45, 43.56, 298.18°)
OKLaboklab(34.83% 0.016 -0.11)
OKLCHoklch(34.83% 0.111 278.3)
XYZxyz(5.2655, 3.9328, 16.3980)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3072 #72712F
analogous
#2F5272 #2F3072 #502F72
triadic
#2F3072 #722F30 #30722F
tetradic
#2F3072 #722F52 #72712F #2F7250
square
#2F3072 #722F52 #72712F #2F7250
split-complementary
#2F3072 #72502F #52722F
monochromatic
#0B0C1B #1D1E47 #2F3072 #41429D #5F60BD

Accessibility & contrast

On white

11.75
#2F3072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F3072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3072
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3072#FFFFFF#000000##FFFFFF
##2F30721.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033B74
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#0B3F4C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f3072;
/* rgb */ color: rgb(47, 48, 114);
/* oklch */ color: oklch(34.8% 0.111 278.3);
Tailwind
colors: {
  custom: {
    50: '#6e689b',
    500: '#2f3072',
    950: '#000000',
  },
}
SCSS
$custom: #2f3072;
$custom-light: #6e689b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3072",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 114
  },
  "hsl": {
    "h": 239.104,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34827,
    "c": 0.11114,
    "h": 278.3
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#2F3072
secondary
#A3A25A
accent
#D056D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3072

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

Preview Lab → · Contrast checker → · Palette generator →

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