#3123A9#3123A9

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

Color values

HEX#3123A9
RGBrgb(49, 35, 169)
HSLhsl(246, 66%, 40%)
HSVhsv(246, 79%, 66%)
CMYKcmyk(71%, 79.3%, 0%, 33.7%)
CIE-LABlab(25.92, 47.44, -68.49)
CIE-LCHlch(25.92, 83.32, 304.71°)
OKLaboklab(38.23% 0.021 -0.198)
OKLCHoklch(38.23% 0.199 276)
XYZxyz(9.0267, 4.7188, 37.9635)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3123A9 #9BA923
analogous
#2358A9 #3123A9 #7423A9
triadic
#3123A9 #A93123 #23A931
tetradic
#3123A9 #A92358 #9BA923 #23A974
square
#3123A9 #A92358 #9BA923 #23A974
split-complementary
#3123A9 #A97423 #58A923
monochromatic
#140E44 #221976 #3123A9 #4534D5 #7467DF

Accessibility & contrast

On white

10.80
#3123A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3123A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3123A9
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3123A9#FFFFFF#000000##FFFFFF
##3123A91.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3123a9;
/* rgb */ color: rgb(49, 35, 169);
/* oklch */ color: oklch(38.2% 0.199 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c61c4',
    500: '#3123a9',
    950: '#000000',
  },
}
SCSS
$custom: #3123a9;
$custom-light: #7c61c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3123a9",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 246.269,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.38227,
    "c": 0.19911,
    "h": 276
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#3123A9
secondary
#BBC563
accent
#E93FD7
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #3123A9

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

Preview Lab → · Contrast checker → · Palette generator →

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