#242E98#242E98

#242E98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.170 H 270.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#242E98
RGBrgb(36, 46, 152)
HSLhsl(235, 62%, 37%)
HSVhsv(235, 76%, 60%)
CMYKcmyk(76.3%, 69.7%, 0%, 40.4%)
CIE-LABlab(25.55, 34.12, -58.79)
CIE-LCHlch(25.55, 67.98, 300.13°)
OKLaboklab(37.21% 0.0026 -0.1701)
OKLCHoklch(37.21% 0.17 270.9)
XYZxyz(7.3701, 4.5953, 30.1982)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242E98 #988E24
analogous
#246898 #242E98 #542498
triadic
#242E98 #98242E #2E9824
tetradic
#242E98 #982468 #988E24 #249854
square
#242E98 #982468 #988E24 #249854
split-complementary
#242E98 #985424 #689824
monochromatic
#0D1035 #181F67 #242E98 #303DC9 #5E68D9

Accessibility & contrast

On white

10.94
#242E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#242E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242E98
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242E98#FFFFFF#000000##FFFFFF
##242E981.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #242e98;
/* rgb */ color: rgb(36, 46, 152);
/* oklch */ color: oklch(37.2% 0.170 270.9);
Tailwind
colors: {
  custom: {
    50: '#7267b7',
    500: '#242e98',
    950: '#000000',
  },
}
SCSS
$custom: #242e98;
$custom-light: #7267b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242e98",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 234.828,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37212,
    "c": 0.17014,
    "h": 270.9
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#242E98
secondary
#BEB55A
accent
#D743E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242E98

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

Preview Lab → · Contrast checker → · Palette generator →

#242E98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva