#2F285B#2F285B

#2F285B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.4% C 0.088 H 286.4°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2F285B
RGBrgb(47, 40, 91)
HSLhsl(248, 39%, 26%)
HSVhsv(248, 56%, 36%)
CMYKcmyk(48.4%, 56%, 0%, 64.3%)
CIE-LABlab(19.54, 18.04, -29.70)
CIE-LCHlch(19.54, 34.75, 301.28°)
OKLaboklab(31.37% 0.0249 -0.0845)
OKLCHoklch(31.37% 0.088 286.4)
XYZxyz(3.8189, 2.8771, 10.2496)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F285B #545B28
analogous
#283A5B #2F285B #48285B
triadic
#2F285B #5B2F28 #285B2F
tetradic
#2F285B #5B283A #545B28 #285B48
square
#2F285B #5B283A #545B28 #285B48
split-complementary
#2F285B #5B4828 #3A5B28
monochromatic
#0B0915 #191530 #2F285B #453B86 #5B4DB0

Accessibility & contrast

On white

13.33
#2F285B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F285B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F285B
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F285B#FFFFFF#000000##FFFFFF
##2F285B1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315D
Deuteranopia (green-blind)
#0F2E5A
Tritanopia (blue-blind)
#21333D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f285b;
/* rgb */ color: rgb(47, 40, 91);
/* oklch */ color: oklch(31.4% 0.088 286.4);
Tailwind
colors: {
  custom: {
    50: '#6b628a',
    500: '#2f285b',
    950: '#000000',
  },
}
SCSS
$custom: #2f285b;
$custom-light: #6b628a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f285b",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 91
  },
  "hsl": {
    "h": 248.235,
    "s": 38.931,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31373,
    "c": 0.08806,
    "h": 286.4
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#2F285B
secondary
#858E51
accent
#CF59BF
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050B
muted
#7A797C

Preview Lab

Preview with #2F285B

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

Preview Lab → · Contrast checker → · Palette generator →

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