#2F257F#2F257F

#2F257F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.145 H 280.4°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2F257F
RGBrgb(47, 37, 127)
HSLhsl(247, 55%, 32%)
HSVhsv(247, 71%, 50%)
CMYKcmyk(63%, 70.9%, 0%, 50.2%)
CIE-LABlab(21.80, 32.37, -49.36)
CIE-LCHlch(21.80, 59.03, 303.26°)
OKLaboklab(33.96% 0.0262 -0.1422)
OKLCHoklch(33.96% 0.145 280.4)
XYZxyz(5.6634, 3.4594, 20.4438)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F257F #757F25
analogous
#25487F #2F257F #5C257F
triadic
#2F257F #7F2F25 #257F2F
tetradic
#2F257F #7F2548 #757F25 #257F5C
square
#2F257F #7F2548 #757F25 #257F5C
split-complementary
#2F257F #7F5C25 #487F25
monochromatic
#0C0920 #1D1750 #2F257F #4133AE #5F52CD

Accessibility & contrast

On white

12.41
#2F257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F257F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F257F#FFFFFF#000000##FFFFFF
##2F257F1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f257f;
/* rgb */ color: rgb(47, 37, 127);
/* oklch */ color: oklch(34.0% 0.145 280.4);
Tailwind
colors: {
  custom: {
    50: '#7260a5',
    500: '#2f257f',
    950: '#000000',
  },
}
SCSS
$custom: #2f257f;
$custom-light: #7260a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f257f",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 246.667,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33964,
    "c": 0.14463,
    "h": 280.4
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#2F257F
secondary
#A6B14F
accent
#DE4ACE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F257F

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

Preview Lab → · Contrast checker → · Palette generator →

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