#2F287F#2F287F

#2F287F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.141 H 279.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2F287F
RGBrgb(47, 40, 127)
HSLhsl(245, 52%, 33%)
HSVhsv(245, 69%, 50%)
CMYKcmyk(63%, 68.5%, 0%, 50.2%)
CIE-LABlab(22.49, 30.49, -48.22)
CIE-LCHlch(22.49, 57.05, 302.30°)
OKLaboklab(34.47% 0.0235 -0.1389)
OKLCHoklch(34.47% 0.141 279.6)
XYZxyz(5.7606, 3.6538, 20.4762)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F287F #787F28
analogous
#284C7F #2F287F #5B287F
triadic
#2F287F #7F2F28 #287F2F
tetradic
#2F287F #7F284C #787F28 #287F5B
square
#2F287F #7F284C #787F28 #287F5B
split-complementary
#2F287F #7F5B28 #4C7F28
monochromatic
#0D0B22 #1E1950 #2F287F #4037AE #6057CA

Accessibility & contrast

On white

12.13
#2F287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F287F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F287F#FFFFFF#000000##FFFFFF
##2F287F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f287f;
/* rgb */ color: rgb(47, 40, 127);
/* oklch */ color: oklch(34.5% 0.141 279.6);
Tailwind
colors: {
  custom: {
    50: '#7162a5',
    500: '#2f287f',
    950: '#000000',
  },
}
SCSS
$custom: #2f287f;
$custom-light: #7162a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f287f",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 244.828,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34466,
    "c": 0.14088,
    "h": 279.6
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#2F287F
secondary
#A8AF54
accent
#DC4CD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F287F

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

Preview Lab → · Contrast checker → · Palette generator →

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