#2F306F#2F306F

#2F306F is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.107 H 278.6°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2F306F
RGBrgb(47, 48, 111)
HSLhsl(239, 41%, 31%)
HSVhsv(239, 58%, 44%)
CMYKcmyk(57.7%, 56.8%, 0%, 56.5%)
CIE-LABlab(23.22, 19.50, -36.83)
CIE-LCHlch(23.22, 41.68, 297.89°)
OKLaboklab(34.59% 0.0159 -0.1054)
OKLCHoklch(34.59% 0.107 278.6)
XYZxyz(5.0976, 3.8656, 15.5134)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F306F #6F6E2F
analogous
#2F506F #2F306F #4E2F6F
triadic
#2F306F #6F2F30 #306F2F
tetradic
#2F306F #6F2F50 #6F6E2F #2F6F4E
square
#2F306F #6F2F50 #6F6E2F #2F6F4E
split-complementary
#2F306F #6F4E2F #506F2F
monochromatic
#0B0B19 #1D1D44 #2F306F #41439A #5E5FBB

Accessibility & contrast

On white

11.84
#2F306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F306F
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F306F#FFFFFF#000000##FFFFFF
##2F306F1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093A71
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#103E4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f306f;
/* rgb */ color: rgb(47, 48, 111);
/* oklch */ color: oklch(34.6% 0.107 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e6899',
    500: '#2f306f',
    950: '#000000',
  },
}
SCSS
$custom: #2f306f;
$custom-light: #6e6899;
$custom-dark: #000000;
JSON
{
  "hex": "#2f306f",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 239.063,
    "s": 40.506,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.10658,
    "h": 278.6
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#2F306F
secondary
#A09F59
accent
#CE57D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2F306F

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

Preview Lab → · Contrast checker → · Palette generator →

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