#2338AF#2338AF

#2338AF is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.189 H 268.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2338AF
RGBrgb(35, 56, 175)
HSLhsl(231, 67%, 41%)
HSVhsv(231, 80%, 69%)
CMYKcmyk(80%, 68%, 0%, 31.4%)
CIE-LABlab(30.11, 36.06, -65.21)
CIE-LCHlch(30.11, 74.52, 298.94°)
OKLaboklab(41.19% -0.0057 -0.1889)
OKLCHoklch(41.19% 0.189 268.3)
XYZxyz(9.8425, 6.2797, 41.2425)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2338AF #AF9A23
analogous
#237EAF #2338AF #5423AF
triadic
#2338AF #AF2338 #38AF23
tetradic
#2338AF #AF237E #AF9A23 #23AF54
square
#2338AF #AF237E #AF9A23 #23AF54
split-complementary
#2338AF #AF5423 #7EAF23
monochromatic
#0F1749 #19287C #2338AF #3850D7 #6B7DE1

Accessibility & contrast

On white

9.31
#2338AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2338AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2338AF
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2338AF#FFFFFF#000000##FFFFFF
##2338AF1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0040AD
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2338af;
/* rgb */ color: rgb(35, 56, 175);
/* oklch */ color: oklch(41.2% 0.189 268.3);
Tailwind
colors: {
  custom: {
    50: '#776fc8',
    500: '#2338af',
    950: '#000000',
  },
}
SCSS
$custom: #2338af;
$custom-light: #776fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2338af",
  "rgb": {
    "r": 35,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 231,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41189,
    "c": 0.18895,
    "h": 268.3
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#2338AF
secondary
#C7B966
accent
#D03EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2338AF

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

Preview Lab → · Contrast checker → · Palette generator →

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