#3123A8#3123A8

#3123A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.198 H 276.2°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#3123A8
RGBrgb(49, 35, 168)
HSLhsl(246, 66%, 40%)
HSVhsv(246, 79%, 66%)
CMYKcmyk(70.8%, 79.2%, 0%, 34.1%)
CIE-LABlab(25.81, 47.13, -68.07)
CIE-LCHlch(25.81, 82.80, 304.70°)
OKLaboklab(38.12% 0.0212 -0.1968)
OKLCHoklch(38.12% 0.198 276.2)
XYZxyz(8.9332, 4.6813, 37.4710)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3123A8 #9AA823
analogous
#2357A8 #3123A8 #7423A8
triadic
#3123A8 #A83123 #23A831
tetradic
#3123A8 #A82357 #9AA823 #23A874
square
#3123A8 #A82357 #9AA823 #23A874
split-complementary
#3123A8 #A87423 #57A823
monochromatic
#130E43 #221875 #3123A8 #4534D5 #7366DF

Accessibility & contrast

On white

10.84
#3123A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3123A8
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3123A8#FFFFFF#000000##FFFFFF
##3123A81.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3123a8;
/* rgb */ color: rgb(49, 35, 168);
/* oklch */ color: oklch(38.1% 0.198 276.2);
Tailwind
colors: {
  custom: {
    50: '#7c61c3',
    500: '#3123a8',
    950: '#000000',
  },
}
SCSS
$custom: #3123a8;
$custom-light: #7c61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3123a8",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 246.316,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38117,
    "c": 0.19792,
    "h": 276.2
  },
  "luminance": 0.04682
}

Semantic roles & 50–950 ramp

primary
#3123A8
secondary
#BAC562
accent
#E83FD7
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #3123A8

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

Preview Lab → · Contrast checker → · Palette generator →

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