#2340AF#2340AF

#2340AF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.180 H 266.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#2340AF
RGBrgb(35, 64, 175)
HSLhsl(228, 67%, 41%)
HSVhsv(228, 80%, 69%)
CMYKcmyk(80%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.07, 30.87, -61.98)
CIE-LCHlch(32.07, 69.24, 296.47°)
OKLaboklab(42.63% -0.0099 -0.1794)
OKLCHoklch(42.63% 0.18 266.8)
XYZxyz(10.2617, 7.1181, 41.3822)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340AF #AF9223
analogous
#2386AF #2340AF #4C23AF
triadic
#2340AF #AF2340 #40AF23
tetradic
#2340AF #AF2386 #AF9223 #23AF4C
square
#2340AF #AF2386 #AF9223 #23AF4C
split-complementary
#2340AF #AF4C23 #86AF23
monochromatic
#0F1B49 #192D7C #2340AF #3859D7 #6B84E1

Accessibility & contrast

On white

8.66
#2340AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2340AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340AF
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340AF#FFFFFF#000000##FFFFFF
##2340AF1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2340af;
/* rgb */ color: rgb(35, 64, 175);
/* oklch */ color: oklch(42.6% 0.180 266.8);
Tailwind
colors: {
  custom: {
    50: '#7674c8',
    500: '#2340af',
    950: '#000000',
  },
}
SCSS
$custom: #2340af;
$custom-light: #7674c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2340af",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 227.571,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42632,
    "c": 0.17963,
    "h": 266.8
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#2340AF
secondary
#C7B366
accent
#C63EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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