#2F257A#2F257A

#2F257A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.138 H 281.3°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2F257A
RGBrgb(47, 37, 122)
HSLhsl(247, 53%, 31%)
HSVhsv(247, 70%, 48%)
CMYKcmyk(61.5%, 69.7%, 0%, 52.2%)
CIE-LABlab(21.33, 30.67, -46.95)
CIE-LCHlch(21.33, 56.08, 303.16°)
OKLaboklab(33.48% 0.0269 -0.1352)
OKLCHoklch(33.48% 0.138 281.3)
XYZxyz(5.3456, 3.3322, 18.7701)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F257A #707A25
analogous
#25457A #2F257A #59257A
triadic
#2F257A #7A2F25 #257A2F
tetradic
#2F257A #7A2545 #707A25 #257A59
square
#2F257A #7A2545 #707A25 #257A59
split-complementary
#2F257A #7A5925 #457A25
monochromatic
#0B091C #1D174B #2F257A #4133A9 #5E50CA

Accessibility & contrast

On white

12.60
#2F257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F257A
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F257A#FFFFFF#000000##FFFFFF
##2F257A1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f257a;
/* rgb */ color: rgb(47, 37, 122);
/* oklch */ color: oklch(33.5% 0.138 281.3);
Tailwind
colors: {
  custom: {
    50: '#7160a1',
    500: '#2f257a',
    950: '#000000',
  },
}
SCSS
$custom: #2f257a;
$custom-light: #7160a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f257a",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 247.059,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33483,
    "c": 0.13784,
    "h": 281.3
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#2F257A
secondary
#A1AC4E
accent
#DD4BCC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F257A

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

Preview Lab → · Contrast checker → · Palette generator →

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