#2F285E#2F285E

#2F285E is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.6% C 0.093 H 285.7°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2F285E
RGBrgb(47, 40, 94)
HSLhsl(248, 40%, 26%)
HSVhsv(248, 57%, 37%)
CMYKcmyk(50%, 57.4%, 0%, 63.1%)
CIE-LABlab(19.76, 19.06, -31.34)
CIE-LCHlch(19.76, 36.68, 301.31°)
OKLaboklab(31.6% 0.0251 -0.0893)
OKLCHoklch(31.6% 0.093 285.7)
XYZxyz(3.9509, 2.9299, 10.9449)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F285E #575E28
analogous
#283C5E #2F285E #4A285E
triadic
#2F285E #5E2F28 #285E2F
tetradic
#2F285E #5E283C #575E28 #285E4A
square
#2F285E #5E283C #575E28 #285E4A
split-complementary
#2F285E #5E4A28 #3C5E28
monochromatic
#0B0915 #1A1633 #2F285E #443A89 #5A4DB3

Accessibility & contrast

On white

13.24
#2F285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F285E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F285E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F285E#FFFFFF#000000##FFFFFF
##2F285E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3160
Deuteranopia (green-blind)
#0A2E5D
Tritanopia (blue-blind)
#1F343E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f285e;
/* rgb */ color: rgb(47, 40, 94);
/* oklch */ color: oklch(31.6% 0.093 285.7);
Tailwind
colors: {
  custom: {
    50: '#6b628c',
    500: '#2f285e',
    950: '#000000',
  },
}
SCSS
$custom: #2f285e;
$custom-light: #6b628c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f285e",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 247.778,
    "s": 40.299,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31604,
    "c": 0.09274,
    "h": 285.7
  },
  "luminance": 0.0293
}

Semantic roles & 50–950 ramp

primary
#2F285E
secondary
#889151
accent
#D058C1
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2F285E

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

Preview Lab → · Contrast checker → · Palette generator →

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