#2F257C#2F257C

#2F257C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.141 H 280.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2F257C
RGBrgb(47, 37, 124)
HSLhsl(247, 54%, 32%)
HSVhsv(247, 70%, 49%)
CMYKcmyk(62.1%, 70.2%, 0%, 51.4%)
CIE-LABlab(21.51, 31.35, -47.92)
CIE-LCHlch(21.51, 57.26, 303.20°)
OKLaboklab(33.67% 0.0266 -0.138)
OKLCHoklch(33.67% 0.141 280.9)
XYZxyz(5.4708, 3.3823, 19.4294)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F257C #727C25
analogous
#25477C #2F257C #5B257C
triadic
#2F257C #7C2F25 #257C2F
tetradic
#2F257C #7C2547 #727C25 #257C5B
square
#2F257C #7C2547 #727C25 #257C5B
split-complementary
#2F257C #7C5B25 #477C25
monochromatic
#0B091E #1D174D #2F257C #4133AB #5F50CB

Accessibility & contrast

On white

12.53
#2F257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F257C
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F257C#FFFFFF#000000##FFFFFF
##2F257C1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f257c;
/* rgb */ color: rgb(47, 37, 124);
/* oklch */ color: oklch(33.7% 0.141 280.9);
Tailwind
colors: {
  custom: {
    50: '#7160a3',
    500: '#2f257c',
    950: '#000000',
  },
}
SCSS
$custom: #2f257c;
$custom-light: #7160a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f257c",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 246.897,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33674,
    "c": 0.14057,
    "h": 280.9
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#2F257C
secondary
#A3AE4F
accent
#DD4ACD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F257C

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

Preview Lab → · Contrast checker → · Palette generator →

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