#2340D4#2340D4

#2340D4 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.2% C 0.226 H 267.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#2340D4
RGBrgb(35, 64, 212)
HSLhsl(230, 72%, 48%)
HSVhsv(230, 83%, 83%)
CMYKcmyk(83.5%, 69.8%, 0%, 16.9%)
CIE-LABlab(35.55, 44.39, -77.96)
CIE-LCHlch(35.55, 89.72, 299.66°)
OKLaboklab(46.22% -0.0119 -0.226)
OKLCHoklch(46.22% 0.226 267)
XYZxyz(14.4061, 8.7758, 63.2092)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340D4 #D4B723
analogous
#2399D4 #2340D4 #5E23D4
triadic
#2340D4 #D42340 #40D423
tetradic
#2340D4 #D42399 #D4B723 #23D45E
square
#2340D4 #D42399 #D4B723 #23D45E
split-complementary
#2340D4 #D45E23 #99D423
monochromatic
#12206B #1A309F #2340D4 #5269E2 #8697EB

Accessibility & contrast

On white

7.62
#2340D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2340D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340D4
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340D4#FFFFFF#000000##FFFFFF
##2340D41.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD8
Deuteranopia (green-blind)
#004BD1
Tritanopia (blue-blind)
#006A85
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2340d4;
/* rgb */ color: rgb(35, 64, 212);
/* oklch */ color: oklch(46.2% 0.226 267.0);
Tailwind
colors: {
  custom: {
    50: '#8075e3',
    500: '#2340d4',
    950: '#000000',
  },
}
SCSS
$custom: #2340d4;
$custom-light: #8075e3;
$custom-dark: #000000;
JSON
{
  "hex": "#2340d4",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 230.169,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46224,
    "c": 0.22631,
    "h": 267
  },
  "luminance": 0.08778
}

Semantic roles & 50–950 ramp

primary
#2340D4
secondary
#D4C67E
accent
#D139EE
background
#F8F7FE
surface
#F0EDFC
border
#CBC8D5
text
#0C0816
muted
#7D7B84

Preview Lab

Preview with #2340D4

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

Preview Lab → · Contrast checker → · Palette generator →

#2340D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva