#2F248C#2F248C

#2F248C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.163 H 278.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2F248C
RGBrgb(47, 36, 140)
HSLhsl(246, 59%, 35%)
HSVhsv(246, 74%, 55%)
CMYKcmyk(66.4%, 74.3%, 0%, 45.1%)
CIE-LABlab(22.86, 37.35, -55.78)
CIE-LCHlch(22.86, 67.12, 303.81°)
OKLaboklab(35.11% 0.0245 -0.161)
OKLCHoklch(35.11% 0.163 278.6)
XYZxyz(6.5353, 3.7590, 25.1870)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F248C #818C24
analogous
#244D8C #2F248C #63248C
triadic
#2F248C #8C2F24 #248C2F
tetradic
#2F248C #8C244D #818C24 #248C63
square
#2F248C #8C244D #818C24 #248C63
split-complementary
#2F248C #8C6324 #4D8C24
monochromatic
#0E0B2B #1F175B #2F248C #3F31BD #6457D4

Accessibility & contrast

On white

11.99
#2F248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F248C
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F248C#FFFFFF#000000##FFFFFF
##2F248C1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f248c;
/* rgb */ color: rgb(47, 36, 140);
/* oklch */ color: oklch(35.1% 0.163 278.6);
Tailwind
colors: {
  custom: {
    50: '#7560af',
    500: '#2f248c',
    950: '#000000',
  },
}
SCSS
$custom: #2f248c;
$custom-light: #7560af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f248c",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 246.346,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35112,
    "c": 0.16286,
    "h": 278.6
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#2F248C
secondary
#ADB854
accent
#E246D2
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F248C

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

Preview Lab → · Contrast checker → · Palette generator →

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