#2F249B#2F249B

#2F249B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.182 H 276.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2F249B
RGBrgb(47, 36, 155)
HSLhsl(246, 62%, 37%)
HSVhsv(246, 77%, 61%)
CMYKcmyk(69.7%, 76.8%, 0%, 39.2%)
CIE-LABlab(24.42, 42.27, -62.46)
CIE-LCHlch(24.42, 75.42, 304.09°)
OKLaboklab(36.69% 0.0212 -0.1805)
OKLCHoklch(36.69% 0.182 276.7)
XYZxyz(7.7176, 4.2320, 31.4141)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F249B #909B24
analogous
#24559B #2F249B #6A249B
triadic
#2F249B #9B2F24 #249B2F
tetradic
#2F249B #9B2455 #909B24 #249B6A
square
#2F249B #9B2455 #909B24 #249B6A
split-complementary
#2F249B #9B6A24 #559B24
monochromatic
#110D38 #201869 #2F249B #3E30CD #6B5FDA

Accessibility & contrast

On white

11.37
#2F249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F249B
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F249B#FFFFFF#000000##FFFFFF
##2F249B1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f249b;
/* rgb */ color: rgb(47, 36, 155);
/* oklch */ color: oklch(36.7% 0.182 276.7);
Tailwind
colors: {
  custom: {
    50: '#7861ba',
    500: '#2f249b',
    950: '#000000',
  },
}
SCSS
$custom: #2f249b;
$custom-light: #7861ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f249b",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 245.546,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36689,
    "c": 0.18175,
    "h": 276.7
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#2F249B
secondary
#B6BF5C
accent
#E542D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F249B

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

Preview Lab → · Contrast checker → · Palette generator →

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