#2F256B#2F256B

#2F256B is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.1% C 0.117 H 284.2°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2F256B
RGBrgb(47, 37, 107)
HSLhsl(249, 49%, 28%)
HSVhsv(249, 65%, 42%)
CMYKcmyk(56.1%, 65.4%, 0%, 58%)
CIE-LABlab(20.00, 25.54, -39.47)
CIE-LCHlch(20.00, 47.01, 302.90°)
OKLaboklab(32.1% 0.0286 -0.1132)
OKLCHoklch(32.1% 0.117 284.2)
XYZxyz(4.4869, 2.9888, 14.2475)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F256B #616B25
analogous
#253E6B #2F256B #52256B
triadic
#2F256B #6B2F25 #256B2F
tetradic
#2F256B #6B253E #616B25 #256B52
square
#2F256B #6B253E #616B25 #256B52
split-complementary
#2F256B #6B5225 #3E6B25
monochromatic
#0A0817 #1B153E #2F256B #433598 #5B4AC0

Accessibility & contrast

On white

13.14
#2F256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F256B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F256B#FFFFFF#000000##FFFFFF
##2F256B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#163644
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f256b;
/* rgb */ color: rgb(47, 37, 107);
/* oklch */ color: oklch(32.1% 0.117 284.2);
Tailwind
colors: {
  custom: {
    50: '#6e6096',
    500: '#2f256b',
    950: '#000000',
  },
}
SCSS
$custom: #2f256b;
$custom-light: #6e6096;
$custom-dark: #000000;
JSON
{
  "hex": "#2f256b",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 248.571,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32104,
    "c": 0.11677,
    "h": 284.2
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#2F256B
secondary
#939E4E
accent
#D850C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #2F256B

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

Preview Lab → · Contrast checker → · Palette generator →

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