#2F256C#2F256C

#2F256C is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.2% C 0.118 H 284.0°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2F256C
RGBrgb(47, 37, 108)
HSLhsl(248, 49%, 28%)
HSVhsv(248, 66%, 42%)
CMYKcmyk(56.5%, 65.7%, 0%, 57.6%)
CIE-LABlab(20.08, 25.88, -39.98)
CIE-LCHlch(20.08, 47.63, 302.92°)
OKLaboklab(32.19% 0.0285 -0.1147)
OKLCHoklch(32.19% 0.118 284)
XYZxyz(4.5398, 3.0099, 14.5262)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F256C #626C25
analogous
#253E6C #2F256C #52256C
triadic
#2F256C #6C2F25 #256C2F
tetradic
#2F256C #6C253E #626C25 #256C52
square
#2F256C #6C253E #626C25 #256C52
split-complementary
#2F256C #6C5225 #3E6C25
monochromatic
#0A0817 #1B153E #2F256C #43359A #5B4AC1

Accessibility & contrast

On white

13.11
#2F256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F256C
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F256C#FFFFFF#000000##FFFFFF
##2F256C1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#153644
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f256c;
/* rgb */ color: rgb(47, 37, 108);
/* oklch */ color: oklch(32.2% 0.118 284.0);
Tailwind
colors: {
  custom: {
    50: '#6e6097',
    500: '#2f256c',
    950: '#000000',
  },
}
SCSS
$custom: #2f256c;
$custom-light: #6e6097;
$custom-dark: #000000;
JSON
{
  "hex": "#2f256c",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 248.451,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32193,
    "c": 0.11822,
    "h": 284
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#2F256C
secondary
#949F4E
accent
#D94FC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #2F256C

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

Preview Lab → · Contrast checker → · Palette generator →

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