#2F286A#2F286A

#2F286A is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.6% C 0.111 H 283.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2F286A
RGBrgb(47, 40, 106)
HSLhsl(246, 45%, 29%)
HSVhsv(246, 62%, 42%)
CMYKcmyk(55.7%, 62.3%, 0%, 58.4%)
CIE-LABlab(20.68, 23.19, -37.71)
CIE-LCHlch(20.68, 44.27, 301.59°)
OKLaboklab(32.58% 0.0252 -0.108)
OKLCHoklch(32.58% 0.111 283.2)
XYZxyz(4.5318, 3.1623, 14.0045)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F286A #636A28
analogous
#28426A #2F286A #50286A
triadic
#2F286A #6A2F28 #286A2F
tetradic
#2F286A #6A2842 #636A28 #286A50
square
#2F286A #6A2842 #636A28 #286A50
split-complementary
#2F286A #6A5028 #426A28
monochromatic
#0A0816 #1B173E #2F286A #433996 #5B50BD

Accessibility & contrast

On white

12.86
#2F286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F286A
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F286A#FFFFFF#000000##FFFFFF
##2F286A1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#173744
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f286a;
/* rgb */ color: rgb(47, 40, 106);
/* oklch */ color: oklch(32.6% 0.111 283.2);
Tailwind
colors: {
  custom: {
    50: '#6d6295',
    500: '#2f286a',
    950: '#000000',
  },
}
SCSS
$custom: #2f286a;
$custom-light: #6d6295;
$custom-dark: #000000;
JSON
{
  "hex": "#2f286a",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 246.364,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32579,
    "c": 0.11094,
    "h": 283.2
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#2F286A
secondary
#959D51
accent
#D553C7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2F286A

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

Preview Lab → · Contrast checker → · Palette generator →

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