#3123A4#3123A4

#3123A4 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.7% C 0.193 H 276.6°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3123A4
RGBrgb(49, 35, 164)
HSLhsl(247, 65%, 39%)
HSVhsv(247, 79%, 64%)
CMYKcmyk(70.1%, 78.7%, 0%, 35.7%)
CIE-LABlab(25.37, 45.88, -66.38)
CIE-LCHlch(25.37, 80.69, 304.65°)
OKLaboklab(37.68% 0.0222 -0.1919)
OKLCHoklch(37.68% 0.193 276.6)
XYZxyz(8.5663, 4.5346, 35.5386)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3123A4 #96A423
analogous
#2356A4 #3123A4 #7223A4
triadic
#3123A4 #A43123 #23A431
tetradic
#3123A4 #A42356 #96A423 #23A472
square
#3123A4 #A42356 #96A423 #23A472
split-complementary
#3123A4 #A47223 #56A423
monochromatic
#130D3F #221872 #3123A4 #4331D3 #7164DE

Accessibility & contrast

On white

11.01
#3123A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3123A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3123A4
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3123A4#FFFFFF#000000##FFFFFF
##3123A41.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3123a4;
/* rgb */ color: rgb(49, 35, 164);
/* oklch */ color: oklch(37.7% 0.193 276.6);
Tailwind
colors: {
  custom: {
    50: '#7b61c0',
    500: '#3123a4',
    950: '#000000',
  },
}
SCSS
$custom: #3123a4;
$custom-light: #7b61c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3123a4",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 246.512,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37678,
    "c": 0.19315,
    "h": 276.6
  },
  "luminance": 0.04535
}

Semantic roles & 50–950 ramp

primary
#3123A4
secondary
#B8C360
accent
#E840D6
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3123A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3123A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva