#2F257E#2F257E

#2F257E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.143 H 280.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2F257E
RGBrgb(47, 37, 126)
HSLhsl(247, 55%, 32%)
HSVhsv(247, 71%, 49%)
CMYKcmyk(62.7%, 70.6%, 0%, 50.6%)
CIE-LABlab(21.70, 32.03, -48.88)
CIE-LCHlch(21.70, 58.44, 303.24°)
OKLaboklab(33.87% 0.0263 -0.1408)
OKLCHoklch(33.87% 0.143 280.6)
XYZxyz(5.5986, 3.4334, 20.1023)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F257E #747E25
analogous
#25477E #2F257E #5C257E
triadic
#2F257E #7E2F25 #257E2F
tetradic
#2F257E #7E2547 #747E25 #257E5C
square
#2F257E #7E2547 #747E25 #257E5C
split-complementary
#2F257E #7E5C25 #477E25
monochromatic
#0C091F #1D174F #2F257E #4133AD #5F51CC

Accessibility & contrast

On white

12.45
#2F257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F257E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F257E#FFFFFF#000000##FFFFFF
##2F257E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f257e;
/* rgb */ color: rgb(47, 37, 126);
/* oklch */ color: oklch(33.9% 0.143 280.6);
Tailwind
colors: {
  custom: {
    50: '#7260a4',
    500: '#2f257e',
    950: '#000000',
  },
}
SCSS
$custom: #2f257e;
$custom-light: #7260a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f257e",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 246.742,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33867,
    "c": 0.14328,
    "h": 280.6
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#2F257E
secondary
#A5B04F
accent
#DE4ACD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F257E

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

Preview Lab → · Contrast checker → · Palette generator →

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