#3124A8#3124A8

#3124A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.2% C 0.197 H 276.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3124A8
RGBrgb(49, 36, 168)
HSLhsl(246, 65%, 40%)
HSVhsv(246, 79%, 66%)
CMYKcmyk(70.8%, 78.6%, 0%, 34.1%)
CIE-LABlab(25.98, 46.62, -67.78)
CIE-LCHlch(25.98, 82.27, 304.52°)
OKLaboklab(38.24% 0.0208 -0.1959)
OKLCHoklch(38.24% 0.197 276)
XYZxyz(8.9631, 4.7410, 37.4810)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3124A8 #9BA824
analogous
#2459A8 #3124A8 #7324A8
triadic
#3124A8 #A83124 #24A831
tetradic
#3124A8 #A82459 #9BA824 #24A873
square
#3124A8 #A82459 #9BA824 #24A873
split-complementary
#3124A8 #A87324 #59A824
monochromatic
#140E43 #221976 #3124A8 #4535D4 #7368DF

Accessibility & contrast

On white

10.78
#3124A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3124A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3124A8
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3124A8#FFFFFF#000000##FFFFFF
##3124A81.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3124a8;
/* rgb */ color: rgb(49, 36, 168);
/* oklch */ color: oklch(38.2% 0.197 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c62c3',
    500: '#3124a8',
    950: '#000000',
  },
}
SCSS
$custom: #3124a8;
$custom-light: #7c62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3124a8",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 245.909,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.3824,
    "c": 0.19704,
    "h": 276
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#3124A8
secondary
#BBC463
accent
#E840D7
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #3124A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3124A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva