#2F257D#2F257D

#2F257D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.142 H 280.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2F257D
RGBrgb(47, 37, 125)
HSLhsl(247, 54%, 32%)
HSVhsv(247, 70%, 49%)
CMYKcmyk(62.4%, 70.4%, 0%, 51%)
CIE-LABlab(21.61, 31.69, -48.40)
CIE-LCHlch(21.61, 57.85, 303.22°)
OKLaboklab(33.77% 0.0265 -0.1394)
OKLCHoklch(33.77% 0.142 280.8)
XYZxyz(5.5344, 3.4077, 19.7642)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F257D #737D25
analogous
#25477D #2F257D #5B257D
triadic
#2F257D #7D2F25 #257D2F
tetradic
#2F257D #7D2547 #737D25 #257D5B
square
#2F257D #7D2547 #737D25 #257D5B
split-complementary
#2F257D #7D5B25 #477D25
monochromatic
#0B091F #1D174E #2F257D #4133AC #5F51CB

Accessibility & contrast

On white

12.49
#2F257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F257D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F257D#FFFFFF#000000##FFFFFF
##2F257D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f257d;
/* rgb */ color: rgb(47, 37, 125);
/* oklch */ color: oklch(33.8% 0.142 280.8);
Tailwind
colors: {
  custom: {
    50: '#7160a3',
    500: '#2f257d',
    950: '#000000',
  },
}
SCSS
$custom: #2f257d;
$custom-light: #7160a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f257d",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 246.818,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33771,
    "c": 0.14192,
    "h": 280.8
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#2F257D
secondary
#A4AF4F
accent
#DE4ACD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F257D

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

Preview Lab → · Contrast checker → · Palette generator →

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