#2F248D#2F248D

#2F248D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.164 H 278.5°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2F248D
RGBrgb(47, 36, 141)
HSLhsl(246, 59%, 35%)
HSVhsv(246, 74%, 55%)
CMYKcmyk(66.7%, 74.5%, 0%, 44.7%)
CIE-LABlab(22.96, 37.68, -56.23)
CIE-LCHlch(22.96, 67.69, 303.82°)
OKLaboklab(35.22% 0.0243 -0.1623)
OKLCHoklch(35.22% 0.164 278.5)
XYZxyz(6.6093, 3.7886, 25.5771)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F248D #828D24
analogous
#244D8D #2F248D #64248D
triadic
#2F248D #8D2F24 #248D2F
tetradic
#2F248D #8D244D #828D24 #248D64
square
#2F248D #8D244D #828D24 #248D64
split-complementary
#2F248D #8D6424 #4D8D24
monochromatic
#0E0B2B #1F185C #2F248D #3F30BE #6457D4

Accessibility & contrast

On white

11.95
#2F248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F248D
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F248D#FFFFFF#000000##FFFFFF
##2F248D1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f248d;
/* rgb */ color: rgb(47, 36, 141);
/* oklch */ color: oklch(35.2% 0.164 278.5);
Tailwind
colors: {
  custom: {
    50: '#7560af',
    500: '#2f248d',
    950: '#000000',
  },
}
SCSS
$custom: #2f248d;
$custom-light: #7560af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f248d",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 246.286,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35215,
    "c": 0.16415,
    "h": 278.5
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#2F248D
secondary
#AEB854
accent
#E345D2
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F248D

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

Preview Lab → · Contrast checker → · Palette generator →

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