#2F287A#2F287A

#2F287A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.134 H 280.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2F287A
RGBrgb(47, 40, 122)
HSLhsl(245, 51%, 32%)
HSVhsv(245, 67%, 48%)
CMYKcmyk(61.5%, 67.2%, 0%, 52.2%)
CIE-LABlab(22.04, 28.75, -45.79)
CIE-LCHlch(22.04, 54.07, 302.13°)
OKLaboklab(34% 0.0241 -0.1318)
OKLCHoklch(34% 0.134 280.4)
XYZxyz(5.4428, 3.5267, 18.8025)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F287A #737A28
analogous
#284A7A #2F287A #58287A
triadic
#2F287A #7A2F28 #287A2F
tetradic
#2F287A #7A284A #737A28 #287A58
square
#2F287A #7A284A #737A28 #287A58
split-complementary
#2F287A #7A5828 #4A7A28
monochromatic
#0B0A1E #1D194C #2F287A #4137A8 #5F55C7

Accessibility & contrast

On white

12.31
#2F287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F287A
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F287A#FFFFFF#000000##FFFFFF
##2F287A1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f287a;
/* rgb */ color: rgb(47, 40, 122);
/* oklch */ color: oklch(34.0% 0.134 280.4);
Tailwind
colors: {
  custom: {
    50: '#7062a1',
    500: '#2f287a',
    950: '#000000',
  },
}
SCSS
$custom: #2f287a;
$custom-light: #7062a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f287a",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 245.122,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33999,
    "c": 0.13395,
    "h": 280.4
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#2F287A
secondary
#A4AC52
accent
#DA4ECE
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F287A

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

Preview Lab → · Contrast checker → · Palette generator →

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