#2F256F#2F256F

#2F256F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.123 H 283.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2F256F
RGBrgb(47, 37, 111)
HSLhsl(248, 50%, 29%)
HSVhsv(248, 67%, 44%)
CMYKcmyk(57.7%, 66.7%, 0%, 56.5%)
CIE-LABlab(20.34, 26.91, -41.50)
CIE-LCHlch(20.34, 49.46, 302.96°)
OKLaboklab(32.46% 0.0283 -0.1192)
OKLCHoklch(32.46% 0.123 283.3)
XYZxyz(4.7022, 3.0749, 15.3816)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F256F #656F25
analogous
#25406F #2F256F #54256F
triadic
#2F256F #6F2F25 #256F2F
tetradic
#2F256F #6F2540 #656F25 #256F54
square
#2F256F #6F2540 #656F25 #256F54
split-complementary
#2F256F #6F5425 #406F25
monochromatic
#0A0817 #1C1641 #2F256F #42349D #5B4BC3

Accessibility & contrast

On white

13.00
#2F256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F256F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F256F#FFFFFF#000000##FFFFFF
##2F256F1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#123746
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f256f;
/* rgb */ color: rgb(47, 37, 111);
/* oklch */ color: oklch(32.5% 0.123 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f6099',
    500: '#2f256f',
    950: '#000000',
  },
}
SCSS
$custom: #2f256f;
$custom-light: #6f6099;
$custom-dark: #000000;
JSON
{
  "hex": "#2f256f",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 248.108,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32461,
    "c": 0.12251,
    "h": 283.3
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#2F256F
secondary
#97A24E
accent
#DA4EC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F256F

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

Preview Lab → · Contrast checker → · Palette generator →

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