#2F249E#2F249E

#2F249E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.185 H 276.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2F249E
RGBrgb(47, 36, 158)
HSLhsl(245, 63%, 38%)
HSVhsv(245, 77%, 62%)
CMYKcmyk(70.3%, 77.2%, 0%, 38%)
CIE-LABlab(24.75, 43.24, -63.76)
CIE-LCHlch(24.75, 77.04, 304.15°)
OKLaboklab(37.01% 0.0205 -0.1843)
OKLCHoklch(37.01% 0.185 276.3)
XYZxyz(7.9727, 4.3340, 32.7575)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F249E #939E24
analogous
#24569E #2F249E #6C249E
triadic
#2F249E #9E2F24 #249E2F
tetradic
#2F249E #9E2456 #939E24 #249E6C
square
#2F249E #9E2456 #939E24 #249E6C
split-complementary
#2F249E #9E6C24 #569E24
monochromatic
#110D3A #20196C #2F249E #3E2FD0 #6C61DB

Accessibility & contrast

On white

11.25
#2F249E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F249E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F249E
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F249E#FFFFFF#000000##FFFFFF
##2F249E1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f249e;
/* rgb */ color: rgb(47, 36, 158);
/* oklch */ color: oklch(37.0% 0.185 276.3);
Tailwind
colors: {
  custom: {
    50: '#7961bc',
    500: '#2f249e',
    950: '#000000',
  },
}
SCSS
$custom: #2f249e;
$custom-light: #7961bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f249e",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 245.41,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37012,
    "c": 0.18543,
    "h": 276.3
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#2F249E
secondary
#B7C05E
accent
#E642D7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F249E

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

Preview Lab → · Contrast checker → · Palette generator →

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