#2F256E#2F256E

#2F256E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.121 H 283.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2F256E
RGBrgb(47, 37, 110)
HSLhsl(248, 50%, 29%)
HSVhsv(248, 66%, 43%)
CMYKcmyk(57.3%, 66.4%, 0%, 56.9%)
CIE-LABlab(20.25, 26.57, -41.00)
CIE-LCHlch(20.25, 48.85, 302.94°)
OKLaboklab(32.37% 0.0284 -0.1177)
OKLCHoklch(32.37% 0.121 283.6)
XYZxyz(4.6475, 3.0530, 15.0932)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F256E #646E25
analogous
#25406E #2F256E #54256E
triadic
#2F256E #6E2F25 #256E2F
tetradic
#2F256E #6E2540 #646E25 #256E54
square
#2F256E #6E2540 #646E25 #256E54
split-complementary
#2F256E #6E5425 #406E25
monochromatic
#0A0817 #1B1640 #2F256E #43349C #5B4BC2

Accessibility & contrast

On white

13.04
#2F256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F256E
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F256E#FFFFFF#000000##FFFFFF
##2F256E1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#133745
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f256e;
/* rgb */ color: rgb(47, 37, 110);
/* oklch */ color: oklch(32.4% 0.121 283.6);
Tailwind
colors: {
  custom: {
    50: '#6e6098',
    500: '#2f256e',
    950: '#000000',
  },
}
SCSS
$custom: #2f256e;
$custom-light: #6e6098;
$custom-dark: #000000;
JSON
{
  "hex": "#2f256e",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 248.219,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32371,
    "c": 0.12108,
    "h": 283.6
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#2F256E
secondary
#96A14E
accent
#D94FC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F256E

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

Preview Lab → · Contrast checker → · Palette generator →

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