#2F256A#2F256A

#2F256A is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.0% C 0.115 H 284.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2F256A
RGBrgb(47, 37, 106)
HSLhsl(249, 48%, 28%)
HSVhsv(249, 65%, 42%)
CMYKcmyk(55.7%, 65.1%, 0%, 58.4%)
CIE-LABlab(19.91, 25.20, -38.96)
CIE-LCHlch(19.91, 46.40, 302.89°)
OKLaboklab(32.02% 0.0287 -0.1117)
OKLCHoklch(32.02% 0.115 284.4)
XYZxyz(4.4346, 2.9678, 13.9721)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F256A #606A25
analogous
#253D6A #2F256A #51256A
triadic
#2F256A #6A2F25 #256A2F
tetradic
#2F256A #6A253D #606A25 #256A51
square
#2F256A #6A253D #606A25 #256A51
split-complementary
#2F256A #6A5125 #3D6A25
monochromatic
#0A0817 #1B153D #2F256A #433597 #5B4AC0

Accessibility & contrast

On white

13.18
#2F256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F256A
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F256A#FFFFFF#000000##FFFFFF
##2F256A1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#173643
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f256a;
/* rgb */ color: rgb(47, 37, 106);
/* oklch */ color: oklch(32.0% 0.115 284.4);
Tailwind
colors: {
  custom: {
    50: '#6e6095',
    500: '#2f256a',
    950: '#000000',
  },
}
SCSS
$custom: #2f256a;
$custom-light: #6e6095;
$custom-dark: #000000;
JSON
{
  "hex": "#2f256a",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 248.696,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32016,
    "c": 0.11533,
    "h": 284.4
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#2F256A
secondary
#929D4E
accent
#D850C4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2F256A

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

Preview Lab → · Contrast checker → · Palette generator →

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