#2F285A#2F285A

#2F285A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.086 H 286.7°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2F285A
RGBrgb(47, 40, 90)
HSLhsl(248, 38%, 25%)
HSVhsv(248, 56%, 35%)
CMYKcmyk(47.8%, 55.6%, 0%, 64.7%)
CIE-LABlab(19.47, 17.70, -29.14)
CIE-LCHlch(19.47, 34.10, 301.27°)
OKLaboklab(31.3% 0.0249 -0.0828)
OKLCHoklch(31.3% 0.086 286.7)
XYZxyz(3.7760, 2.8600, 10.0239)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F285A #535A28
analogous
#283A5A #2F285A #48285A
triadic
#2F285A #5A2F28 #285A2F
tetradic
#2F285A #5A283A #535A28 #285A48
square
#2F285A #5A283A #535A28 #285A48
split-complementary
#2F285A #5A4828 #3A5A28
monochromatic
#0B0915 #191530 #2F285A #453B84 #5B4EAF

Accessibility & contrast

On white

13.36
#2F285A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F285A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F285A
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F285A#FFFFFF#000000##FFFFFF
##2F285A1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11305C
Deuteranopia (green-blind)
#112E59
Tritanopia (blue-blind)
#22333C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f285a;
/* rgb */ color: rgb(47, 40, 90);
/* oklch */ color: oklch(31.3% 0.086 286.7);
Tailwind
colors: {
  custom: {
    50: '#6b6289',
    500: '#2f285a',
    950: '#000000',
  },
}
SCSS
$custom: #2f285a;
$custom-light: #6b6289;
$custom-dark: #000000;
JSON
{
  "hex": "#2f285a",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 90
  },
  "hsl": {
    "h": 248.4,
    "s": 38.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31298,
    "c": 0.08649,
    "h": 286.7
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#2F285A
secondary
#848D51
accent
#CE59BE
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050B
muted
#7A797C

Preview Lab

Preview with #2F285A

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

Preview Lab → · Contrast checker → · Palette generator →

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