#3123A2#3123A2

#3123A2 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.191 H 276.8°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3123A2
RGBrgb(49, 35, 162)
HSLhsl(247, 64%, 39%)
HSVhsv(247, 78%, 64%)
CMYKcmyk(69.8%, 78.4%, 0%, 36.5%)
CIE-LABlab(25.15, 45.25, -65.53)
CIE-LCHlch(25.15, 79.63, 304.62°)
OKLaboklab(37.46% 0.0227 -0.1894)
OKLCHoklch(37.46% 0.191 276.8)
XYZxyz(8.3871, 4.4629, 34.5948)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3123A2 #94A223
analogous
#2354A2 #3123A2 #7023A2
triadic
#3123A2 #A23123 #23A231
tetradic
#3123A2 #A22354 #94A223 #23A270
square
#3123A2 #A22354 #94A223 #23A270
split-complementary
#3123A2 #A27023 #54A223
monochromatic
#130D3D #221870 #3123A2 #4230D2 #7062DD

Accessibility & contrast

On white

11.09
#3123A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3123A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3123A2
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3123A2#FFFFFF#000000##FFFFFF
##3123A21.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3123a2;
/* rgb */ color: rgb(49, 35, 162);
/* oklch */ color: oklch(37.5% 0.191 276.8);
Tailwind
colors: {
  custom: {
    50: '#7a61bf',
    500: '#3123a2',
    950: '#000000',
  },
}
SCSS
$custom: #3123a2;
$custom-light: #7a61bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3123a2",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 246.614,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3746,
    "c": 0.19075,
    "h": 276.8
  },
  "luminance": 0.04464
}

Semantic roles & 50–950 ramp

primary
#3123A2
secondary
#B7C25E
accent
#E740D5
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3123A2

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

Preview Lab → · Contrast checker → · Palette generator →

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