#2F248E#2F248E

#2F248E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.165 H 278.4°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2F248E
RGBrgb(47, 36, 142)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 56%)
CMYKcmyk(66.9%, 74.6%, 0%, 44.3%)
CIE-LABlab(23.06, 38.01, -56.68)
CIE-LCHlch(23.06, 68.25, 303.84°)
OKLaboklab(35.32% 0.0241 -0.1637)
OKLCHoklch(35.32% 0.165 278.4)
XYZxyz(6.6841, 3.8185, 25.9708)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F248E #838E24
analogous
#244E8E #2F248E #64248E
triadic
#2F248E #8E2F24 #248E2F
tetradic
#2F248E #8E244E #838E24 #248E64
square
#2F248E #8E244E #838E24 #248E64
split-complementary
#2F248E #8E6424 #4E8E24
monochromatic
#0F0B2C #1F185D #2F248E #3F30BF #6558D5

Accessibility & contrast

On white

11.91
#2F248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F248E
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F248E#FFFFFF#000000##FFFFFF
##2F248E1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f248e;
/* rgb */ color: rgb(47, 36, 142);
/* oklch */ color: oklch(35.3% 0.165 278.4);
Tailwind
colors: {
  custom: {
    50: '#7560b0',
    500: '#2f248e',
    950: '#000000',
  },
}
SCSS
$custom: #2f248e;
$custom-light: #7560b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f248e",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 246.226,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35319,
    "c": 0.16543,
    "h": 278.4
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#2F248E
secondary
#AFB955
accent
#E345D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F248E

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

Preview Lab → · Contrast checker → · Palette generator →

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