#2F247B#2F247B

#2F247B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.140 H 281.4°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2F247B
RGBrgb(47, 36, 123)
HSLhsl(248, 55%, 31%)
HSVhsv(248, 71%, 48%)
CMYKcmyk(61.8%, 70.7%, 0%, 51.8%)
CIE-LABlab(21.19, 31.64, -47.81)
CIE-LCHlch(21.19, 57.33, 303.49°)
OKLaboklab(33.41% 0.0277 -0.1377)
OKLCHoklch(33.41% 0.14 281.4)
XYZxyz(5.3772, 3.2958, 19.0878)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F247B #707B24
analogous
#24447B #2F247B #5A247B
triadic
#2F247B #7B2F24 #247B2F
tetradic
#2F247B #7B2444 #707B24 #247B5A
square
#2F247B #7B2444 #707B24 #247B5A
split-complementary
#2F247B #7B5A24 #447B24
monochromatic
#0B081C #1D164C #2F247B #4132AA #5E4ECB

Accessibility & contrast

On white

12.66
#2F247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F247B
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F247B#FFFFFF#000000##FFFFFF
##2F247B1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f247b;
/* rgb */ color: rgb(47, 36, 123);
/* oklch */ color: oklch(33.4% 0.140 281.4);
Tailwind
colors: {
  custom: {
    50: '#7160a2',
    500: '#2f247b',
    950: '#000000',
  },
}
SCSS
$custom: #2f247b;
$custom-light: #7160a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f247b",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 247.586,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33413,
    "c": 0.14046,
    "h": 281.4
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#2F247B
secondary
#A1AD4D
accent
#DE4ACB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F247B

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

Preview Lab → · Contrast checker → · Palette generator →

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